Get python options with _parse_help().
This commit is contained in:
parent
d1be965eee
commit
4b2c511e2d
@ -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
|
||||
|
@ -12,8 +12,9 @@ setup
|
||||
|
||||
|
||||
assert_complete_any "python "
|
||||
sync_after_int
|
||||
|
||||
|
||||
assert_complete_any "python -"
|
||||
sync_after_int
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user