From 147c2d8faea10c53d1ecc10a4b20927b9d7708c6 Mon Sep 17 00:00:00 2001 From: Jille Timmermans Date: Wed, 9 Feb 2022 11:53:31 +0100 Subject: [PATCH] down: Reject all arguments The down command silently ignored all arguments, which might cause confusion and/or outages if someone expects `docker-compose down $service` to be the opposite of `docker-compose up $service`, rather than turning down everything. Signed-off-by: Jille Timmermans --- cmd/compose/down.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/compose/down.go b/cmd/compose/down.go index daca5164f..a8104fef8 100644 --- a/cmd/compose/down.go +++ b/cmd/compose/down.go @@ -59,6 +59,7 @@ func downCommand(p *projectOptions, backend api.Service) *cobra.Command { RunE: Adapt(func(ctx context.Context, args []string) error { return runDown(ctx, backend, opts) }), + Args: cobra.NoArgs, ValidArgsFunction: noCompletion(), } flags := downCmd.Flags()