Skip to content

Commit 147c2d8

Browse files
committed
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 <[email protected]>
1 parent 69e21d8 commit 147c2d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/compose/down.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func downCommand(p *projectOptions, backend api.Service) *cobra.Command {
5959
RunE: Adapt(func(ctx context.Context, args []string) error {
6060
return runDown(ctx, backend, opts)
6161
}),
62+
Args: cobra.NoArgs,
6263
ValidArgsFunction: noCompletion(),
6364
}
6465
flags := downCmd.Flags()

0 commit comments

Comments
 (0)