Skip to content

Commit 7fc43e7

Browse files
authored
The example have some problem in api (#2039)
change HideHelpCommands to HideHelpCommand Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
1 parent 55c2d91 commit 7fc43e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109
},
110110
SkipFlagParsing: false,
111111
HideHelp: false,
112-
HideHelpCommands: false,
112+
HideHelpCommand: false,
113113
Hidden: false,
114114
HelpName: "doo!",
115115
BashComplete: func(cCtx *cli.Context) {
@@ -157,7 +157,7 @@ func main() {
157157
},
158158
EnableBashCompletion: true,
159159
HideHelp: false,
160-
HideHelpCommands: false,
160+
HideHelpCommand: false,
161161
HideVersion: false,
162162
BashComplete: func(cCtx *cli.Context) {
163163
fmt.Fprintf(cCtx.App.Writer, "lipstick\nkiss\nme\nlipstick\nringo\n")

0 commit comments

Comments
 (0)