argparse_util
Some utilities to improve the argparse
module.
-
class
craw.argparse_util.
VersionAction
(option_strings, version=None, dest='==SUPPRESS==', default='==SUPPRESS==', help="show program's version number and exit")[source]
Class to allow argparse to handel more complex version output
-
__call__
(parser, namespace, values, option_string=None)[source]
Override the argparse._VersionAction.__call__()
to use
a RawTextHelpFormatter only for version action whatever the class_formatter
specified for the argparse.ArgumentParser
object.