Skip to content

Commit

Permalink
Completion should also handle --help
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 13, 2020
1 parent ed260af commit 0e7c04f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions contrib/completion/bash/docker
Expand Up @@ -4228,10 +4228,17 @@ _docker_manifest_push() {
}

_docker_manifest_rm() {
local counter=$( __docker_pos_first_nonflag )
if [ "$cword" -eq "$counter" ]; then
__docker_complete_images --force-tag --id
fi
case "$cur" in
-*)
COMPREPLY=( $( compgen -S "--help" -- "$cur" ) )
;;
*)
local counter=$( __docker_pos_first_nonflag )
if [ "$cword" -eq "$counter" ]; then
__docker_complete_images --force-tag --id
fi
;;
esac
}

_docker_node() {
Expand Down

0 comments on commit 0e7c04f

Please sign in to comment.