forked from toolshed/abra
fix: hide help sub-command & persist help flag
This commit is contained in:
@ -167,6 +167,7 @@ func newAbraApp(version, commit string) *cli.Command {
|
||||
},
|
||||
EnableShellCompletion: true,
|
||||
UseShortOptionHandling: true,
|
||||
HideHelpCommand: true,
|
||||
ShellComplete: autocomplete.SubcommandComplete,
|
||||
}
|
||||
|
||||
@ -194,6 +195,13 @@ func newAbraApp(version, commit string) *cli.Command {
|
||||
return nil
|
||||
}
|
||||
|
||||
cli.HelpFlag = &cli.BoolFlag{
|
||||
Name: "help",
|
||||
Aliases: []string{"h, H"},
|
||||
Usage: "Show help",
|
||||
Persistent: true,
|
||||
}
|
||||
|
||||
return app
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user