[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-151-g1709686

Ville Skyttä ville.skytta at iki.fi
Thu Apr 28 18:46:04 UTC 2011


The following commit has been merged in the master branch:
commit 23893f514965bb985858f8e16b38ea6721111880
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Apr 28 21:23:35 2011 +0300

    java, javac: Add -X* completions.
    
    They're revealed only when completing -X* due to the nature of these
    options and the tools being a bit sluggish to invoke and parse
    completions from.

diff --git a/completions/java b/completions/java
index 7a2d7b8..86f9f40 100644
--- a/completions/java
+++ b/completions/java
@@ -216,6 +216,8 @@ _java()
 
     if [[ "$cur" == -* ]]; then
         COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
+        [[ $cur == -X* ]] && \
+            COMPREPLY+=( $( compgen -W '$( _parse_help "$1" -X )' -- "$cur" ) )
     else
         if [[ "$prev" == -jar ]]; then
             # jar file completion
@@ -288,6 +290,8 @@ _javac()
 
     if [[ "$cur" == -* ]]; then
         COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
+        [[ $cur == -X* ]] && \
+            COMPREPLY+=( $( compgen -W '$( _parse_help "$1" -X )' -- "$cur" ) )
     else
         # source files completion
         _filedir java

-- 
bash-completion



More information about the Bash-completion-commits mailing list