Closed jglogan closed 2 years ago
Only task-loader options can be specified before a sub-command (i.e. list
).
Moving the option after the list
should work.
doit -f dodo.py list --db-file ${PWD}/doit-test.db
Sorry, documentation on this really needs some improvements...
I was confused because I thought I'd need to handle subcommands separately from tasks, as I was using doit task-name
to dispatch tasks. But, with doit run task-name
I can apply the argument consistently. Thank you for your help!
Note that parsing CLI options is strict as not accepting unrecognized options. Configurations are more flexible in this aspect. You can specify an option to all commands, and those are options are ignored if they do not apply.
dodo.py
DOIT_CONFIG = {"dep_file": "doit-test.db"}
dodo.py
:What I see:
Is this expected behavior?
Environment
Upvote & Fund