Skip to content

Commit cd7d34a

Browse files
authored
Merge pull request #1968 from midirhee12/help-command-docs
feat: added HideHelpCommands to docs
2 parents cf9bcea + 1578e53 commit cd7d34a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/v2/examples/full-api-example.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,11 @@ func main() {
107107
Action: wopAction,
108108
},
109109
},
110-
SkipFlagParsing: false,
111-
HideHelp: false,
112-
Hidden: false,
113-
HelpName: "doo!",
110+
SkipFlagParsing: false,
111+
HideHelp: false,
112+
HideHelpCommands: false,
113+
Hidden: false,
114+
HelpName: "doo!",
114115
BashComplete: func(cCtx *cli.Context) {
115116
fmt.Fprintf(cCtx.App.Writer, "--better\n")
116117
},
@@ -156,6 +157,7 @@ func main() {
156157
},
157158
EnableBashCompletion: true,
158159
HideHelp: false,
160+
HideHelpCommands: false,
159161
HideVersion: false,
160162
BashComplete: func(cCtx *cli.Context) {
161163
fmt.Fprintf(cCtx.App.Writer, "lipstick\nkiss\nme\nlipstick\nringo\n")

0 commit comments

Comments
 (0)