Skip to content

Commit

Permalink
Replace deprecated ExactValidArgs with MatchAll in shell_completions …
Browse files Browse the repository at this point in the history
…example
  • Loading branch information
doniacld committed Oct 20, 2022
1 parent badcce1 commit b786670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell_completions.md
Expand Up @@ -71,7 +71,7 @@ PowerShell:
`,cmd.Root().Name()),
DisableFlagsInUseLine: true,
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
Args: cobra.ExactValidArgs(1),
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
Run: func(cmd *cobra.Command, args []string) {
switch args[0] {
case "bash":
Expand Down

0 comments on commit b786670

Please sign in to comment.