Closed timhemel closed 1 year ago
I realized that this may introduce problems if required flags are used with the decorator task_params
, because then certain parameters not relevant to the current task may be required.
task_params
also provides a way to validate the command line parameters. so this solves my problem.
doit
does not check if command options (i.e. cmdline arguments to a task) are present before creating the task. This results in an error later on.doit
could check this if it would look for arequired
flag in the task dictparams
section.Example:
It is not a perfect command line option validation as you would have in
argparse
orclick
, but it saves some headaches when usingdoit
.Describe alternatives you've considered
I could not think of any elegant alternatives.
Funding