mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
DisableFlagParsing in helpCommand set to true
This commit is contained in:
parent
dcb405a939
commit
85e8097390
1 changed files with 1 additions and 0 deletions
|
@ -1190,6 +1190,7 @@ func (c *Command) InitDefaultHelpCmd() {
|
||||||
Short: "Help about any command",
|
Short: "Help about any command",
|
||||||
Long: `Help provides help for any command in the application.
|
Long: `Help provides help for any command in the application.
|
||||||
Simply type ` + c.Name() + ` help [path to command] for full details.`,
|
Simply type ` + c.Name() + ` help [path to command] for full details.`,
|
||||||
|
DisableFlagParsing: true,
|
||||||
ValidArgsFunction: func(c *Command, args []string, toComplete string) ([]string, ShellCompDirective) {
|
ValidArgsFunction: func(c *Command, args []string, toComplete string) ([]string, ShellCompDirective) {
|
||||||
var completions []string
|
var completions []string
|
||||||
cmd, _, e := c.Root().Find(args)
|
cmd, _, e := c.Root().Find(args)
|
||||||
|
|
Loading…
Reference in a new issue