summaryrefslogtreecommitdiff
path: root/completions/appdata-validate
diff options
context:
space:
mode:
Diffstat (limited to 'completions/appdata-validate')
-rw-r--r--completions/appdata-validate12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/appdata-validate b/completions/appdata-validate
index e6c6ddd6..03d8cc9a 100644
--- a/completions/appdata-validate
+++ b/completions/appdata-validate
@@ -6,13 +6,13 @@ _appdata_validate()
_init_completion -s || return
case $prev in
- -h|--help|--version)
+ -h | --help | --version)
return
;;
--output-format)
- COMPREPLY=( $(compgen -W "$($1 --help |
+ COMPREPLY=($(compgen -W "$($1 --help |
command sed -ne 's/--output-format.*\[\(.*\)\]/\1/' -e 's/|/ /gp')" \
- -- "$cur") )
+ -- "$cur"))
return
;;
esac
@@ -20,13 +20,13 @@ _appdata_validate()
$split && return
if [[ $cur == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
_filedir appdata.xml
} &&
-complete -F _appdata_validate appdata-validate
+ complete -F _appdata_validate appdata-validate
# ex: filetype=sh