[Bash-completion-commits] [SCM] bash-completion branch, master, updated. c1d3cdad70523552e63688cb053a960b64e97b16

Ville Skyttä ville.skytta at iki.fi
Sun Nov 21 18:38:04 UTC 2010


The following commit has been merged in the master branch:
commit 4b2c511e2d9bfd7d9ec5c6956bb6f195ec03568f
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Nov 21 20:05:06 2010 +0200

    Get python options with _parse_help().

diff --git a/completions/python b/completions/python
index ad27270..68b55ff 100644
--- a/completions/python
+++ b/completions/python
@@ -39,8 +39,7 @@ _python()
     if [[ "$cur" != -* ]]; then
         _filedir '@(py|pyc|pyo)'
     else
-        COMPREPLY=( $( compgen -W "- -d -E -h -i -O -Q -S -t -u \
-            -U -v -V -W -x -c" -- "$cur" ) )
+        COMPREPLY=( $( compgen -W "$( _parse_help $1 -h )" -- "$cur" ) )
     fi
 
     return 0
diff --git a/test/lib/completions/python.exp b/test/lib/completions/python.exp
index 57520cd..446e3d0 100644
--- a/test/lib/completions/python.exp
+++ b/test/lib/completions/python.exp
@@ -12,8 +12,9 @@ setup
 
 
 assert_complete_any "python "
+sync_after_int
 
-
+assert_complete_any "python -"
 sync_after_int
 
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list