mirror of
https://github.com/docker/compose.git
synced 2025-07-21 12:44:54 +02:00
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 <jille@quis.cx>
This commit is contained in:
parent
69e21d89f0
commit
147c2d8fae
@ -59,6 +59,7 @@ func downCommand(p *projectOptions, backend api.Service) *cobra.Command {
|
|||||||
RunE: Adapt(func(ctx context.Context, args []string) error {
|
RunE: Adapt(func(ctx context.Context, args []string) error {
|
||||||
return runDown(ctx, backend, opts)
|
return runDown(ctx, backend, opts)
|
||||||
}),
|
}),
|
||||||
|
Args: cobra.NoArgs,
|
||||||
ValidArgsFunction: noCompletion(),
|
ValidArgsFunction: noCompletion(),
|
||||||
}
|
}
|
||||||
flags := downCmd.Flags()
|
flags := downCmd.Flags()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user