From f20a8e7aa02034eddc48e7cc160813883a8935e2 Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Tue, 25 Oct 2022 17:56:38 +0300 Subject: [PATCH] cmd: replace deprecate func use (#5170) --- cmd/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/commands.go b/cmd/commands.go index e1e7a53ec..c92e12696 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":