1
# pack200(1) completion -*- shell-script -*-
5
local cur prev words cword split
6
_init_completion -s || return
9
-S|--segment-limit|-P|--pass-file|-C|--class-attribute|\
10
-F|--field-attribute|-M|--method-attribute|-D|--code-attribute|\
11
'-?'|-h|--help|-V|--version|-J)
15
COMPREPLY=( $( compgen -W '{0..9}' -- "$cur" ) )
19
COMPREPLY=( $( compgen -W 'true false keep' -- "$cur" ) )
22
-m|--modification-time)
23
COMPREPLY=( $( compgen -W 'latest keep' -- "$cur" ) )
26
-U|--unknown-attribute)
27
COMPREPLY=( $( compgen -W 'error strip pass' -- "$cur" ) )
35
COMPREPLY=( $( compgen -W '-' -- "$cur" ) )
47
# Check if a pack or a jar was already given.
48
local i pack=false jar=false
49
for (( i=0; i < ${#words[@]}-1; i++ )) ; do
51
*.pack|*.pack.gz) pack=true ;;
57
if [[ "$cur" == -* ]] ; then
58
COMPREPLY=( $( compgen -W '--no-gzip --gzip --strip-debug \
59
--no-keep-file-order --segment-limit= --effort= \
60
--deflate-hint= --modification-time= --pass-file= \
61
--unknown-attribute= --class-attribute= --field-attribute= \
62
--method-attribute= --code-attribute= --config-file= \
63
--verbose --quiet --log-file= --help --version -J \
64
--repack' -- "$cur" ) )
65
[[ $COMPREPLY == *= ]] && compopt -o nospace
73
complete -F _pack200 pack200
75
# ex: ts=4 sw=4 et filetype=sh