mirror of
https://github.com/docker/compose.git
synced 2026-10-25 05:13:51 +00: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue