Skip to content

Commit

Permalink
Merge pull request #1968 from midirhee12/help-command-docs
Browse files Browse the repository at this point in the history
feat: added HideHelpCommands to docs
  • Loading branch information
dearchap committed Aug 25, 2024
2 parents cf9bcea + 1578e53 commit cd7d34a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/v2/examples/full-api-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ func main() {
Action: wopAction,
},
},
SkipFlagParsing: false,
HideHelp: false,
Hidden: false,
HelpName: "doo!",
SkipFlagParsing: false,
HideHelp: false,
HideHelpCommands: false,
Hidden: false,
HelpName: "doo!",
BashComplete: func(cCtx *cli.Context) {
fmt.Fprintf(cCtx.App.Writer, "--better\n")
},
Expand Down Expand Up @@ -156,6 +157,7 @@ func main() {
},
EnableBashCompletion: true,
HideHelp: false,
HideHelpCommands: false,
HideVersion: false,
BashComplete: func(cCtx *cli.Context) {
fmt.Fprintf(cCtx.App.Writer, "lipstick\nkiss\nme\nlipstick\nringo\n")
Expand Down

0 comments on commit cd7d34a

Please sign in to comment.