Skip to content

Commit f20a8e7

Browse files
authored
cmd: replace deprecate func use (caddyserver#5170)
1 parent 798c4a3 commit f20a8e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ argument of --directory. If the directory does not exist, it will be created.
456456
`, rootCmd.Root().Name()),
457457
DisableFlagsInUseLine: true,
458458
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
459-
Args: cobra.ExactValidArgs(1),
459+
Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
460460
RunE: func(cmd *cobra.Command, args []string) error {
461461
switch args[0] {
462462
case "bash":

0 commit comments

Comments
 (0)