diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index b2ea815e55..b120063d84 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3850,9 +3850,15 @@ _docker_secret_list() { } _docker_secret_ls() { + case "$prev" in + --format) + return + ;; + esac + case "$cur" in -*) - COMPREPLY=( $( compgen -W "--help --quiet -q" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--format --help --quiet -q" -- "$cur" ) ) ;; esac }