CMS 3D CMS Logo

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__ (self, parser, namespace, values, option_string=None)
 
def __init__ (self, option_strings, dest=SUPPRESS, default=SUPPRESS, help=None)
 
- Public Member Functions inherited from argparse.Action
def __call__ (self, parser, namespace, values, option_string=None)
 
def __init__ (self, option_strings, dest, nargs=None, const =None, default=None, type=None, choices=None, required=False, help=None, metavar=None)
 
- Public Member Functions inherited from argparse._AttributeHolder
def __repr__ (self)
 

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.

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

Member Function Documentation

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

Definition at line 1023 of file argparse.py.

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