summaryrefslogtreecommitdiff
path: root/completions/asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'completions/asciidoc')
-rw-r--r--completions/asciidoc22
1 files changed, 11 insertions, 11 deletions
diff --git a/completions/asciidoc b/completions/asciidoc
index fb29fad4..2ddcdfe9 100644
--- a/completions/asciidoc
+++ b/completions/asciidoc
@@ -2,7 +2,7 @@
_asciidoc_doctype()
{
- COMPREPLY+=( $( compgen -W 'article book manpage' -- "$cur" ) )
+ COMPREPLY+=( $(compgen -W 'article book manpage' -- "$cur") )
}
_asciidoc()
@@ -11,26 +11,26 @@ _asciidoc()
_init_completion -s || return
case $prev in
- --attribute|-a)
+ --attribute|-!(-*)a)
return
;;
- --backend|-b)
- COMPREPLY=( $( compgen -W 'docbook html4 xhtml11' -- "$cur" ) )
+ --backend|-!(-*)b)
+ COMPREPLY=( $(compgen -W 'docbook html4 xhtml11' -- "$cur") )
return
;;
- --conf-file|-f)
+ --conf-file|-!(-*)f)
_filedir conf
return
;;
- --doctype|-d)
+ --doctype|-!(-*)d)
_asciidoc_doctype
return
;;
- --help|-h)
- COMPREPLY=( $( compgen -W 'manpage syntax topics' -- "$cur" ) )
+ --help|-!(-*)h)
+ COMPREPLY=( $(compgen -W 'manpage syntax topics' -- "$cur") )
return
;;
- --out-file|-o)
+ --out-file|-!(-*)o)
_filedir
return
;;
@@ -39,8 +39,8 @@ _asciidoc()
$split && return
if [[ $cur == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" "--help manpage" )' \
- -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1" "--help manpage")' \
+ -- "$cur") )
[[ $COMPREPLY == *= ]] && compopt -o nospace
return
fi