summaryrefslogtreecommitdiff
path: root/completions/pack200
diff options
context:
space:
mode:
Diffstat (limited to 'completions/pack200')
-rw-r--r--completions/pack20048
1 files changed, 24 insertions, 24 deletions
diff --git a/completions/pack200 b/completions/pack200
index f35840b0..1a6ded7a 100644
--- a/completions/pack200
+++ b/completions/pack200
@@ -6,37 +6,37 @@ _pack200()
_init_completion -s || return
case $prev in
- -S|--segment-limit|-P|--pass-file|-C|--class-attribute|\
- -F|--field-attribute|-M|--method-attribute|-D|--code-attribute|\
- '-?'|-h|--help|-V|--version|-J)
+ -S | --segment-limit | -P | --pass-file | -C | --class-attribute | \
+ -F | --field-attribute | -M | --method-attribute | -D | --code-attribute | \
+ '-?' | -h | --help | -V | --version | -J)
return
;;
- -E|--effort)
- COMPREPLY=( $(compgen -W '{0..9}' -- "$cur") )
+ -E | --effort)
+ COMPREPLY=($(compgen -W '{0..9}' -- "$cur"))
return
;;
- -H|--deflate-hint)
- COMPREPLY=( $(compgen -W 'true false keep' -- "$cur") )
+ -H | --deflate-hint)
+ COMPREPLY=($(compgen -W 'true false keep' -- "$cur"))
return
;;
- -m|--modification-time)
- COMPREPLY=( $(compgen -W 'latest keep' -- "$cur") )
+ -m | --modification-time)
+ COMPREPLY=($(compgen -W 'latest keep' -- "$cur"))
return
;;
- -U|--unknown-attribute)
- COMPREPLY=( $(compgen -W 'error strip pass' -- "$cur") )
+ -U | --unknown-attribute)
+ COMPREPLY=($(compgen -W 'error strip pass' -- "$cur"))
return
;;
- -f|--config-file)
+ -f | --config-file)
_filedir properties
return
;;
- -l|--log-file)
- COMPREPLY=( $(compgen -W '-' -- "$cur") )
+ -l | --log-file)
+ COMPREPLY=($(compgen -W '-' -- "$cur"))
_filedir log
return
;;
- -r|--repack)
+ -r | --repack)
_filedir jar
return
;;
@@ -46,29 +46,29 @@ _pack200()
# Check if a pack or a jar was already given.
local i pack=false jar=false
- for (( i=0; i < ${#words[@]}-1; i++ )) ; do
+ for ((i = 1; i < ${#words[@]} - 1; i++)); do
case ${words[i]} in
- *.pack|*.pack.gz) pack=true ;;
+ *.pack | *.pack.gz) pack=true ;;
*.jar) jar=true ;;
esac
done
- if ! $pack ; then
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--no-gzip --gzip --strip-debug
+ if ! $pack; then
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '--no-gzip --gzip --strip-debug
--no-keep-file-order --segment-limit= --effort= --deflate-hint=
--modification-time= --pass-file= --unknown-attribute=
--class-attribute= --field-attribute= --method-attribute=
--code-attribute= --config-file= --verbose --quiet --log-file=
- --help --version -J --repack' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ --help --version -J --repack' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
else
_filedir 'pack?(.gz)'
fi
- elif ! $jar ; then
+ elif ! $jar; then
_filedir jar
fi
} &&
-complete -F _pack200 pack200
+ complete -F _pack200 pack200
# ex: filetype=sh