You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chmod +x ./my_module.py
alias my_module='./my_module.py'eval"$(shtab --prog=my_module --shell=bash my_module.get_main_parser)"
And my_module -[TAB] [TAB] works but when I try python3 -m my_module -[TAB] [TAB] or python3 my_module.py -[TAB] [TAB] autocompletion doesn't work. I also tried to replace prog="my_module" with prog="my_module.py" but still it doesn't work.
The text was updated successfully, but these errors were encountered:
I'm trying to enable auto-completion for Python scripts executed with
python -m my_module -[TAB] [TAB]
orpython my_module.py -[TAB] [TAB]
.I first created the script:
Then:
And
my_module -[TAB] [TAB]
works but when I trypython3 -m my_module -[TAB] [TAB]
orpython3 my_module.py -[TAB] [TAB]
autocompletion doesn't work. I also tried to replaceprog="my_module"
withprog="my_module.py"
but still it doesn't work.The text was updated successfully, but these errors were encountered: