diff options
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_arguments | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index e12dca47d..453e3d3e2 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -184,12 +184,16 @@ if (( $# )) && comparguments "$multi[@]" "$autod" "$@"; then else noargs='no arguments' fi - if ! comparguments -O next direct odirect equal; then + if comparguments -O next direct odirect equal; then + opts=yes + _tags options + elif [[ $? -eq 2 ]]; then + compadd -Q - "${PREFIX}${SUFFIX}" + return 0 + else _message "$noargs" return 1 fi - opts=yes - _tags options fi context=() |