diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-01-17 22:07:33 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-01-17 22:07:33 +0200 |
commit | e99645d2b942b85b3020ee66004fd1b7a0cf6723 (patch) | |
tree | 6837984c27316066bf418bdda9d50ffd309710b8 | |
parent | 406e8347ddb1834e1e9c541e733799fab5c1b133 (diff) | |
download | bash-completion-e99645d2b942b85b3020ee66004fd1b7a0cf6723.tar.gz |
Add pack200 --repack completion.
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | completions/java | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -20,8 +20,8 @@ bash-completion (2.x) *.awb, and *.iso (Alioth: #311420) to mplayer filename completions. * Add "short" tarball extensions to unxz, unlzma etc completions. * Improve /etc/init.d/*, ipmitool, jar, java, javadoc, man, mencoder, mkdir, - mplayer, povray, python, rpmbuild, sqlite3, tar, wodim, and general help - parsing completions. + mplayer, pack200, povray, python, rpmbuild, sqlite3, tar, wodim, and + general help parsing completions. * Fix p4 and povray completions (Alioth: #312625). * Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions, and *.gz versions of all of the supported ones. diff --git a/completions/java b/completions/java index 8365a314..eacd85e3 100644 --- a/completions/java +++ b/completions/java @@ -356,6 +356,10 @@ _pack200() _filedir log return 0 ;; + -r|--repack) + _filedir jar + return 0 + ;; esac # Check if a pack or a jar was already given. @@ -374,7 +378,8 @@ _pack200() --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' -- "$cur" ) ) + --verbose --quiet --log-file= --help --version -J \ + --repack' -- "$cur" ) ) [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == *= ]] && \ type compopt &>/dev/null && compopt -o nospace else |