'version' - This expects a version= keyword argument in the add_argument() call, and prints version information and exits when invoked: >>> import argparse >>> parser = argparse.
add_argument ( '--verbose', '-v', action = 'count', default = 0 ) >>> parser.