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