DisableFlagParsing in helpCommand set to true

This commit is contained in:
Jun Nishimura 2023-07-09 16:09:58 +09:00
parent dcb405a939
commit 85e8097390

View file

@ -1190,6 +1190,7 @@ func (c *Command) InitDefaultHelpCmd() {
Short: "Help about any command",
Long: `Help provides help for any command in the application.
Simply type ` + c.Name() + ` help [path to command] for full details.`,
DisableFlagParsing: true,
ValidArgsFunction: func(c *Command, args []string, toComplete string) ([]string, ShellCompDirective) {
var completions []string
cmd, _, e := c.Root().Find(args)