AboutAction#

class AboutAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]#

Bases: Action

Argparse action to print out version, copyright and/or license information from the package __init__

Summary

add_to_parser(parser)

Add the --version, --copyright and --license arguments to a parser.

Details

__call__(parser, namespace, values, option_string=None)[source]#

Call self as a function.

classmethod add_to_parser(parser)[source]#

Add the –version, –copyright and –license arguments to a parser.