Use function default arguments when input is None
I just discovered this behavior in Python:
Costume type from multiple inputs for click option
I am using click library in python.
I am trying to create an option that create an object from multiple inputs in the command line.
For example if the command line is python main.py --param1 a --param2 34 --param3 True --all 1
the option will take the 3 params (param1, param2, param3) and create a costume object from my class Param
.
I tried to create a costume type using click.ParamType
class but it only take a single argument.
Disable abbreviation in argparse
argparse uses per default abbreviation in unambiguous cases.