diff options
author | Mohammed Al Sahaf <msaa1990@gmail.com> | 2022-10-25 17:56:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 17:56:38 +0300 |
commit | f20a8e7aa02034eddc48e7cc160813883a8935e2 (patch) | |
tree | 4f0a0bfc3ec233b237dc1f72ce623a19df847e5a /cmd | |
parent | 798c4a3ba48b55e85867780ed399dc084c15b322 (diff) |
cmd: replace deprecate func use (#5170)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/commands.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/commands.go b/cmd/commands.go index e1e7a53..c92e126 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -456,7 +456,7 @@ argument of --directory. If the directory does not exist, it will be created. `, rootCmd.Root().Name()), DisableFlagsInUseLine: true, ValidArgs: []string{"bash", "zsh", "fish", "powershell"}, - Args: cobra.ExactValidArgs(1), + Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs), RunE: func(cmd *cobra.Command, args []string) error { switch args[0] { case "bash": |