diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
commit | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch) | |
tree | ea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /completions/asciidoc | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/asciidoc')
-rw-r--r-- | completions/asciidoc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/completions/asciidoc b/completions/asciidoc index 2ddcdfe9..1ea4abf2 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,14 +39,14 @@ _asciidoc() $split && return if [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1" "--help manpage")' \ - -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + COMPREPLY=($(compgen -W '$(_parse_help "$1" "--help manpage")' \ + -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi _filedir } && -complete -F _asciidoc asciidoc asciidoc.py + complete -F _asciidoc asciidoc asciidoc.py # ex: filetype=sh |