CMS 3D CMS Logo

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

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 997 of file argparse.py.

Constructor & Destructor Documentation

def argparse._VersionAction.__init__ (   self,
  option_strings,
  version = None,
  dest = SUPPRESS,
  default = SUPPRESS,
  help = "show program's version number and exit" 
)

Definition at line 1004 of file argparse.py.

Referenced by argparse._VersionAction.__init__().

1005  help="show program's version number and exit"):
1006  super(_VersionAction, self).__init__(
1007  option_strings=option_strings,
1008  dest=dest,
1009  default=default,
1010  nargs=0,
1011  help=help)
1012  self.version = version
def argparse._VersionAction.__init__ (   self,
  option_strings,
  dest = SUPPRESS,
  default = SUPPRESS,
  help = None 
)

Definition at line 1015 of file argparse.py.

References argparse._VersionAction.__init__().

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 1013 of file argparse.py.

References ora::MappingRawData.version, TrackerInteractionGeometry.version, MatacqTBRawEvent::matacqHeader_t.version, DQMNet::CoreObject.version, XMLProcessor::_DBConfig.version, ScalersEventRecordRaw_v1.version, ScalersEventRecordRaw_v2.version, ScalersEventRecordRaw_v3.version, ScalersEventRecordRaw_v4.version, ScalersEventRecordRaw_v5.version, argparse._VersionAction.version, and TiXmlDeclaration.version.

Referenced by argparse._VersionAction.__call__().

1014  def __call__(self, parser, namespace, values, option_string=None):
1015  version = self.version
1016  if version is None:
1017  version = parser.version
1018  formatter = parser._get_formatter()
1019  formatter.add_text(version)
1020  parser.exit(message=formatter.format_help())
1021 
def argparse._VersionAction.__call__ (   self,
  parser,
  namespace,
  values,
  option_string = None 
)

Definition at line 1023 of file argparse.py.

References argparse._VersionAction.__call__().

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

Member Data Documentation

argparse._VersionAction.version

Definition at line 1011 of file argparse.py.

Referenced by argparse._VersionAction.__call__(), argparse.ArgumentParser.__init__(), and argparse.ArgumentParser.format_version().