On Zsh the tab-completion ignores the -f and -k command line options.
If there is no dodo.py file, only a some_dodo.py file in the current directory and the -f command line option is given, an error is thrown when trying to perform tab-completion:
$ doit -f some_dodo.py [tab]ERROR: Could not find dodo file '$PWD/dodo.py'.
Please use '-f' to specify file name.
Expected behaviour: Instead of throwing an error, the normal tab-completion should be performed (i.e, a list of tasks defined in some_dodo.py should be printed).
If the dodo.py is in a parent directory and the -k command line option is given, the tab-completion fails, too.
$ doit -k [tab]ERROR: Could not find dodo file '$PWD/dodo.py'.
Please use '-f' to specify file name.
Expected behaviour: Instead of throwing an error, a list of tasks defined e.g. in ../dodo.py should be printed.
In both cases, if there is a dodo.py file in the current directory, the tasks defined in this file are listed.
Tested version:
$ doit --version
0.31.1
$ zsh --version
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)
On Zsh the tab-completion ignores the
-f
and-k
command line options.dodo.py
file, only asome_dodo.py
file in the current directory and the-f
command line option is given, an error is thrown when trying to perform tab-completion:Expected behaviour: Instead of throwing an error, the normal tab-completion should be performed (i.e, a list of tasks defined in
some_dodo.py
should be printed).dodo.py
is in a parent directory and the-k
command line option is given, the tab-completion fails, too.Expected behaviour: Instead of throwing an error, a list of tasks defined e.g. in
../dodo.py
should be printed.In both cases, if there is a
dodo.py
file in the current directory, the tasks defined in this file are listed.Tested version: