Merge pull request #153 from codegangsta/allow-hiding-of-help-flag

Allow hiding of help flag without hiding help subcommand
This commit is contained in:
2015-01-08 14:49:36 -05:00
4 changed files with 26 additions and 3 deletions

View File

@@ -21,6 +21,8 @@ var VersionFlag = BoolFlag{
}
// This flag prints the help for all commands and subcommands
// Set to the zero value (BoolFlag{}) to disable flag -- keeps subcommand
// unless HideHelp is set to true)
var HelpFlag = BoolFlag{
Name: "help, h",
Usage: "show help",