Open con-f-use opened 8 years ago
I can't reproduce this on Ubuntu 14.04 (bash-completion 2.1).
~# ./a.py
Usage:
a.py foo
a.py bar
a.py --help
a.py --version
~# docopt-completion ./a.py --manual-bash
Completion file written to ./a.py.sh
~# source ./a.py.sh
~# a.py<tab><tab>
foo --help bar --version
~# ./a.py<tab><tab>
foo --help bar --version
~# foo/a.py<tab><tab>
foo --help bar --version
~# ./a.py --ver<tab><tab>sion
Problem:
inifi.docopt_completion
doesn't work with local scripts. Here is a minimal example:Proposed solution:
Might have unwanted side-effects but the fastest solution might be to change the
FILE_TEMPLATE
inbash.py : line 3
to: