mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix completion of commands after a global option with arg
Without this fix, `docker -l info ` would not complete the commands. Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
e0dad9a153
commit
aab82c5c22
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ _docker_docker() {
|
|||
COMPREPLY=( $( compgen -W "$boolean_options $global_options_with_args" -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
local counter="$(__docker_pos_first_nonflag $main_options_with_args_glob)"
|
||||
local counter=$( __docker_pos_first_nonflag $(__docker_to_extglob "$global_options_with_args") )
|
||||
if [ $cword -eq $counter ]; then
|
||||
COMPREPLY=( $( compgen -W "${commands[*]} help" -- "$cur" ) )
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue