|
|
@ -94,7 +94,9 @@ func (a *App) Run(arguments []string) error {
|
|
|
|
// append help to commands
|
|
|
|
// append help to commands
|
|
|
|
if a.Command(helpCommand.Name) == nil && !a.HideHelp {
|
|
|
|
if a.Command(helpCommand.Name) == nil && !a.HideHelp {
|
|
|
|
a.Commands = append(a.Commands, helpCommand)
|
|
|
|
a.Commands = append(a.Commands, helpCommand)
|
|
|
|
a.appendFlag(HelpFlag)
|
|
|
|
if (HelpFlag != BoolFlag{}) {
|
|
|
|
|
|
|
|
a.appendFlag(HelpFlag)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//append version/help flags
|
|
|
|
//append version/help flags
|
|
|
@ -174,7 +176,9 @@ func (a *App) RunAsSubcommand(ctx *Context) error {
|
|
|
|
if len(a.Commands) > 0 {
|
|
|
|
if len(a.Commands) > 0 {
|
|
|
|
if a.Command(helpCommand.Name) == nil && !a.HideHelp {
|
|
|
|
if a.Command(helpCommand.Name) == nil && !a.HideHelp {
|
|
|
|
a.Commands = append(a.Commands, helpCommand)
|
|
|
|
a.Commands = append(a.Commands, helpCommand)
|
|
|
|
a.appendFlag(HelpFlag)
|
|
|
|
if (HelpFlag != BoolFlag{}) {
|
|
|
|
|
|
|
|
a.appendFlag(HelpFlag)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|