ArgumentTypeError ( msg )... return value... >>> parser = argparse.
parse_args ([]) Namespace(foo=42) Providing default=argparse.SUPPRESS causes no attribute to be added if the command-line argument was not present: >>> parser = argparse.