diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 1a0e110633..a7ea3a330d 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2299,9 +2299,15 @@ _docker_image_build() { } _docker_image_history() { + case "$prev" in + --format) + return + ;; + esac + case "$cur" in -*) - COMPREPLY=( $( compgen -W "--help --human=false -H=false --no-trunc --quiet -q" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--format --help --human=false -H=false --no-trunc --quiet -q" -- "$cur" ) ) ;; *) local counter=$(__docker_pos_first_nonflag)