diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 63b1b2e653..14a362fa81 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3690,9 +3690,15 @@ _docker_top() { } _docker_version() { + case "$prev" in + --format|-f) + return + ;; + esac + case "$cur" in -*) - COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--format -f --help" -- "$cur" ) ) ;; esac }