test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
argparse._VersionAction Class Reference
Inheritance diagram for argparse._VersionAction:
argparse.Action argparse._AttributeHolder

Public Member Functions

def __call__
 
def __init__
 
- Public Member Functions inherited from argparse.Action
def __call__
 
def __init__
 
- Public Member Functions inherited from argparse._AttributeHolder
def __repr__
 

Additional Inherited Members

- Public Attributes inherited from argparse.Action
 choices
 
 const
 
 default
 
 dest
 
 help
 
 metavar
 
 nargs
 
 option_strings
 
 required
 
 type
 

Detailed Description

Definition at line 1009 of file argparse.py.

Constructor & Destructor Documentation

def argparse._VersionAction.__init__ (   self,
  option_strings,
  dest = SUPPRESS,
  default = SUPPRESS,
  help = None 
)

Definition at line 1015 of file argparse.py.

1016  help=None):
1017  super(_VersionAction, self).__init__(
1018  option_strings=option_strings,
1019  dest=dest,
1020  default=default,
1021  nargs=0,
1022  help=help)

Member Function Documentation

def argparse._VersionAction.__call__ (   self,
  parser,
  namespace,
  values,
  option_string = None 
)

Definition at line 1023 of file argparse.py.

1024  def __call__(self, parser, namespace, values, option_string=None):
1025  parser.print_version()
1026  parser.exit()
1027