diff --git a/cmd/xcaddy/main.go b/cmd/xcaddy/main.go index f9be897..9b4cd02 100644 --- a/cmd/xcaddy/main.go +++ b/cmd/xcaddy/main.go @@ -69,7 +69,7 @@ func runBuild(args []string) error { return fmt.Errorf("expected value after --output flag") } i++ - output = args[i+1] + output = args[i] default: if caddyVersion != "" {