Is it possible to introduce an alias for a choice in an argparse argument?
Specifically, I want to let the user specify a short argument such as main.py --task a and automatically expand that to {'task': "a_long_filename"} after running parse_args().
I was hoping something along the following lines would exist but couldn't find anything in the argparse docs:
parser.add_argument("--task",
choices={"a": "a_long_filename", "b": "b_long_filename"},
default=""a_long_filename"", help="Task to be solved."
)