File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7+ - v1
78 pull_request :
89 branches :
910 - master
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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" },
You can’t perform that action at this time.
0 commit comments