Get python options with _parse_help().

This commit is contained in:
Ville Skyttä 2010-11-21 20:05:06 +02:00
parent d1be965eee
commit 4b2c511e2d
2 changed files with 3 additions and 3 deletions

View File

@ -39,8 +39,7 @@ _python()
if [[ "$cur" != -* ]]; then if [[ "$cur" != -* ]]; then
_filedir '@(py|pyc|pyo)' _filedir '@(py|pyc|pyo)'
else else
COMPREPLY=( $( compgen -W "- -d -E -h -i -O -Q -S -t -u \ COMPREPLY=( $( compgen -W "$( _parse_help $1 -h )" -- "$cur" ) )
-U -v -V -W -x -c" -- "$cur" ) )
fi fi
return 0 return 0

View File

@ -12,8 +12,9 @@ setup
assert_complete_any "python " assert_complete_any "python "
sync_after_int
assert_complete_any "python -"
sync_after_int sync_after_int