Open kisielk opened 1 year ago
I have a ton of use cases where it would be beneficial to be able to define the valid choices for an option, much like argparse can:
https://docs.python.org/3/library/argparse.html#choices
My suggestion would be to add this as a map to the task decorator similiar to how help works now:
task
help
@task(choices={'foo': ['a', 'b', 'c']}) def mytask(c, foo): # stuff
I have a ton of use cases where it would be beneficial to be able to define the valid choices for an option, much like argparse can:
https://docs.python.org/3/library/argparse.html#choices
My suggestion would be to add this as a map to the
task
decorator similiar to howhelp
works now: