mirror of https://github.com/spf13/cobra.git
DisableFlagParsing in bash, zsh, fish, powershell set to true
This commit is contained in:
parent
85e8097390
commit
43e4ad49f7
|
@ -713,6 +713,7 @@ You will need to start a new shell for this setup to take effect.
|
|||
`, c.Root().Name()),
|
||||
Args: NoArgs,
|
||||
DisableFlagsInUseLine: true,
|
||||
DisableFlagParsing: true,
|
||||
ValidArgsFunction: NoFileCompletions,
|
||||
RunE: func(cmd *Command, args []string) error {
|
||||
return cmd.Root().GenBashCompletionV2(out, !noDesc)
|
||||
|
@ -749,6 +750,7 @@ To load completions for every new session, execute once:
|
|||
You will need to start a new shell for this setup to take effect.
|
||||
`, c.Root().Name()),
|
||||
Args: NoArgs,
|
||||
DisableFlagParsing: true,
|
||||
ValidArgsFunction: NoFileCompletions,
|
||||
RunE: func(cmd *Command, args []string) error {
|
||||
if noDesc {
|
||||
|
@ -777,6 +779,7 @@ To load completions for every new session, execute once:
|
|||
You will need to start a new shell for this setup to take effect.
|
||||
`, c.Root().Name()),
|
||||
Args: NoArgs,
|
||||
DisableFlagParsing: true,
|
||||
ValidArgsFunction: NoFileCompletions,
|
||||
RunE: func(cmd *Command, args []string) error {
|
||||
return cmd.Root().GenFishCompletion(out, !noDesc)
|
||||
|
@ -799,6 +802,7 @@ To load completions for every new session, add the output of the above command
|
|||
to your powershell profile.
|
||||
`, c.Root().Name()),
|
||||
Args: NoArgs,
|
||||
DisableFlagParsing: true,
|
||||
ValidArgsFunction: NoFileCompletions,
|
||||
RunE: func(cmd *Command, args []string) error {
|
||||
if noDesc {
|
||||
|
|
Loading…
Reference in New Issue