summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_sablotron
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_sablotron')
-rw-r--r--Completion/Unix/Command/_sablotron16
1 files changed, 8 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_sablotron b/Completion/Unix/Command/_sablotron
index 170f08abd..53e0bec92 100644
--- a/Completion/Unix/Command/_sablotron
+++ b/Completion/Unix/Command/_sablotron
@@ -20,15 +20,8 @@ _arguments -C \
if [[ -n "$state" ]]; then
mode="${opt_args[(i)-c|--chain-xsl]:+chain}${opt_args[(i)-x|--batch-xml]:+batch-x}${opt_args[(i)-s|--batch-xsl]:+batch-s}"
[[ $mode = (chain|batch-[xs]) ]] || mode=default
- _tags assignments files
+ _tags files assignments
while _tags; do
- if _requested assignments; then
- if [[ -prefix *= ]]; then
- _message -e value value
- else
- _message -e parameter 'parameter name'
- fi
- fi
if _requested files; then
case $mode:${#words[1,CURRENT-1]:#(-*|*=*)}; in
default:1|chain:<3->|batch-x:2|batch-s:1)
@@ -45,6 +38,13 @@ if [[ -n "$state" ]]; then
;;
esac
fi
+ if _requested assignments; then
+ if [[ -prefix *= ]]; then
+ _message -e value value
+ else
+ _message -e parameter 'parameter name' && ret=0
+ fi
+ fi
(( ret )) || break
done
fi