Merge pull request #3516 from albers/completion-rm--all

remove command completion for `docker-compose rm --a`
This commit is contained in:
Ben Firshman 2016-06-06 22:23:56 +01:00
commit 6e2d1eb80e
2 changed files with 1 additions and 2 deletions

View File

@ -325,7 +325,7 @@ _docker_compose_restart() {
_docker_compose_rm() { _docker_compose_rm() {
case "$cur" in case "$cur" in
-*) -*)
COMPREPLY=( $( compgen -W "--all -a --force -f --help -v" -- "$cur" ) ) COMPREPLY=( $( compgen -W "--force -f --help -v" -- "$cur" ) )
;; ;;
*) *)
__docker_compose_services_stopped __docker_compose_services_stopped

View File

@ -281,7 +281,6 @@ __docker-compose_subcommand() {
(rm) (rm)
_arguments \ _arguments \
$opts_help \ $opts_help \
'(-a --all)'{-a,--all}"[Also remove one-off containers]" \
'(-f --force)'{-f,--force}"[Don't ask to confirm removal]" \ '(-f --force)'{-f,--force}"[Don't ask to confirm removal]" \
'-v[Remove volumes associated with containers]' \ '-v[Remove volumes associated with containers]' \
'*:stopped services:__docker-compose_stoppedservices' && ret=0 '*:stopped services:__docker-compose_stoppedservices' && ret=0