Skip to content

Commit 6ba4b71

Browse files
authored
Merge branch 'master' into master
2 parents 2489d67 + f35a775 commit 6ba4b71

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/cli.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- v1
78
pull_request:
89
branches:
910
- master

docs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func (a *App) writeDocTemplate(w io.Writer) error {
4848
return t.ExecuteTemplate(w, name, &cliTemplate{
4949
App: a,
5050
Commands: prepareCommands(a.Commands, 0),
51-
GlobalArgs: prepareArgsWithValues(a.Flags),
52-
SynopsisArgs: prepareArgsSynopsis(a.Flags),
51+
GlobalArgs: prepareArgsWithValues(a.VisibleFlags()),
52+
SynopsisArgs: prepareArgsSynopsis(a.VisibleFlags()),
5353
})
5454
}
5555

docs_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ func testApp() *App {
2222
Aliases: []string{"b"},
2323
Usage: "another usage text",
2424
},
25+
&BoolFlag{
26+
Name: "hidden-flag",
27+
Hidden: true,
28+
},
2529
}
2630
app.Commands = []*Command{{
2731
Aliases: []string{"c"},

0 commit comments

Comments
 (0)