Merge pull request #1083 from AkihiroSuda/hide-help-command
Add HideHelpCommand
This commit is contained in:
2
flag.go
2
flag.go
@@ -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"},
|
||||
|
Reference in New Issue
Block a user