Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 09:15 UTC
cmd: replace deprecate func use (#5170)
Mohammed Al Sahaf committed
Oct 25, 2022 at 17:56 UTC
f20a8e7aa02034eddc48e7cc160813883a8935e2
1 file changed
+1
-1
cmd/commands.go
+1
-1
@@ -456,7 +456,7 @@ argument of --directory. If the directory does not exist, it will be created.
456
`, rootCmd.Root().Name()),
457
DisableFlagsInUseLine: true,
458
ValidArgs: []string{"bash", "zsh", "fish", "powershell"},
459
- Args: cobra.ExactValidArgs(1),
459
+ Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs),
460
RunE: func(cmd *cobra.Command, args []string) error {
461
switch args[0] {
462
case "bash":