Merge pull request #1083 from AkihiroSuda/hide-help-command

Add HideHelpCommand
This commit is contained in:
Robert Liebowitz
2020-03-06 07:46:02 -05:00
committed by GitHub
4 changed files with 159 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ var VersionFlag Flag = &BoolFlag{
// HelpFlag prints the help for all commands and subcommands.
// Set to nil to disable the flag. The subcommand
// will still be added unless HideHelp is set to true.
// will still be added unless HideHelp or HideHelpCommand is set to true.
var HelpFlag Flag = &BoolFlag{
Name: "help",
Aliases: []string{"h"},