diff options
-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": |