Kind of related:
If you use nargs="?", use Ellipsis as default, like so:
parser.add_argument("--opt", nargs="?", default=Ellipsis)
If --opt not specifed, Ellipsis will be returned.
If --opt is specified but no argument, None will be returned.
#PythonProgramming #PythonTips #Python
add a skeleton here at some point
about 2 months ago