summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2022-10-25 17:56:38 +0300
committerGitHub <noreply@github.com>2022-10-25 17:56:38 +0300
commitf20a8e7aa02034eddc48e7cc160813883a8935e2 (patch)
tree4f0a0bfc3ec233b237dc1f72ce623a19df847e5a /cmd
parent798c4a3ba48b55e85867780ed399dc084c15b322 (diff)
cmd: replace deprecate func use (#5170)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/commands.go2
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":