about summary refs log tree commit diff
path: root/Completion/Unix/Command/_aap
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-07-17 12:42:15 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-07-17 12:42:15 +0000
commit307812f4cef290f174e9fbbb39b69b63531bf0b3 (patch)
tree7ea31845e7e68db42086c602152f448685301dbf /Completion/Unix/Command/_aap
parent74f47913dae9a1427e553ac01ef0a3a6ba1095b8 (diff)
downloadzsh-307812f4cef290f174e9fbbb39b69b63531bf0b3.tar.gz
zsh-307812f4cef290f174e9fbbb39b69b63531bf0b3.tar.xz
zsh-307812f4cef290f174e9fbbb39b69b63531bf0b3.zip
adjust return code to not break the prefix-needed style
Diffstat (limited to 'Completion/Unix/Command/_aap')
-rw-r--r--Completion/Unix/Command/_aap16
1 files changed, 8 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_aap b/Completion/Unix/Command/_aap
index 42271b2cb..6a06480ed 100644
--- a/Completion/Unix/Command/_aap
+++ b/Completion/Unix/Command/_aap
@@ -2,18 +2,18 @@
 
 # A-A-P recipe executive version 1.001; released 2003 Jul 05 20:44:44 GMT
 
-local curcontext="$curcontext" state line
+local curcontext="$curcontext" state line ret=1
 typeset -A opt_args
 
 _arguments \
   '(- *)'{-V,--version}'[print version information and exit]' \
-  '(- *)'{-h,--help}'[print help message (this one) and exit]' \
+  '(- *)'{-h,--help}'[print help information and exit]' \
   {-v,--verbose}'[print more information]' \
   {-s,--silent}'[print less information]' \
   {-d,--debug=}'[debug the specified items]:flags:' \
-  '--profile=[profile A-A-P execution and write results in FILE]:output file:_files' \
+  '--profile=[profile A-A-P execution and write results in specified file]:output file:_files' \
   {-n,--nobuild}'[print the build commands but do not execute them]' \
-  '--changed=[consider FILE changed]:changed file:_files' \
+  '--changed=[consider specified file changed]:changed file:_files' \
   {-t,--touch}'[update target signatures, do not build]' \
   {-F,--force}'[force rebuilding]' \
   {-C,--contents}'[only build when file contents changed]' \
@@ -28,9 +28,9 @@ _arguments \
   {-u,--search-up,--up}'[search directory tree upwards for main.aap recipe]' \
   \*{-I,--include=}'[directory to search for included recipes]:include directory:_files -/' \
   {-f,--recipe=}'[recipe file to be executed]:recipe file:_files -g \*.aap' \
-  '--install=[install package NAME]:package name:' \
+  '--install=[install specified package]:package name:' \
   '--[end of options, targets and assignments follow]' \
-  '*:aap target:->target' && return
+  '*:aap target:->target' && ret=0
 
 if [[ "$state" = target ]]; then
   local aap_targets aap_recipe expl
@@ -38,8 +38,8 @@ if [[ "$state" = target ]]; then
   aap_recipe=${(v)opt_args[(I)(-f|--recipe)]:-main.aap}
   if [[ -f $aap_recipe ]] && _tags targets; then
     aap_targets=( "${(@)${(@)${(@f)$( _call_program targets "$words[1]" -f $aap_recipe comment 2>/dev/null )}#target }%%: *}" comment )
-    _wanted targets expl target compadd -a aap_targets && return
+    _wanted targets expl target compadd -a aap_targets && ret=0
   fi
 fi
 
-return 1
+return ret