about summary refs log tree commit diff
path: root/Completion/Base/_arguments
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/_arguments')
-rw-r--r--Completion/Base/_arguments6
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 845f828ef..7be7bef8c 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -182,8 +182,10 @@ if (( $# )) && comparguments "$multi[@]" "$autod" "$@"; then
     else
       noargs='no arguments'
     fi
-    comparguments -O next direct odirect equal || return 1
-
+    if ! comparguments -O next direct odirect equal; then
+      _message "$noargs"
+      return 1
+    fi
     opts=yes
     _tags options
   fi