summaryrefslogtreecommitdiff
path: root/completions/a2x
diff options
context:
space:
mode:
Diffstat (limited to 'completions/a2x')
-rw-r--r--completions/a2x11
1 files changed, 5 insertions, 6 deletions
diff --git a/completions/a2x b/completions/a2x
index 06c7c3a4..cf9f9516 100644
--- a/completions/a2x
+++ b/completions/a2x
@@ -6,15 +6,15 @@ _a2x()
_init_completion -s || return
case $prev in
- -a|--attribute|--asciidoc-opts|--dblatex-opts|--fop-opts|-h|--help|\
- --version|--xsltproc-opts)
+ --attribute|--asciidoc-opts|--dblatex-opts|--fop-opts|--help|\
+ --version|--xsltproc-opts|-!(-*)[ah])
return
;;
- -D|--destination-dir|--icons-dir)
+ --destination-dir|--icons-dir|-!(-*)D)
_filedir -d
return
;;
- --doctype|-d)
+ --doctype|-!(-*)d)
_xfunc asciidoc _asciidoc_doctype
return
;;
@@ -27,8 +27,7 @@ _a2x()
$split && return
if [[ $cur == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' \
- -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1" --help)' -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
return
fi