Closed Honghe closed 10 years ago
Thanks for the feedback. I uploaded a new version to pypi with fixes to the two problems you reported. Please confirm it works now.
@wiggin15 sorry, how to pip install
the not normal version infi.docopt_completion 0.1.5.post4.g32ecf43
on line?
Use pip install --upgrade --pre infi.docopt_completion
(or use easy_install -U infi.docopt_completion
)
@wiggin15 OK, it works. Sorry for another question: Where does completion file store? It seems at /etc/bash_completion.d/
, is it? And how to remove the completion file of a specified Python scripts? It seems sometime I can't overwrite the completion file when Python scripts is modified.
Thanks!
Yes, that's the correct path. docopt-completion outputs the path to the generated file. You should be able to remove or overwrite the file, if you use sudo
, I can't think of a reason why it won't work.
env:
docopt_example.py
file:Test on following command, but it doesn't work:
And then follow @wiggin15 suggestion to change the name from
ocopt_example.py
todocopt_example
, but find that there is mix up on auto-completetion: This docstring is:but the auto-completion prompt is: