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

Referenced by argparse._VersionAction.__init__().

1006  help="show program's version number and exit"):
1007  super(_VersionAction, self).__init__(
1008  option_strings=option_strings,
1009  dest=dest,
1010  default=default,
1011  nargs=0,
1012  help=help)
1013  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 1014 of file argparse.py.

References MatrixInjector.MatrixInjector.version, TrackerInteractionGeometry.version, ora::MappingRawData.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, ScalersEventRecordRaw_v6.version, argparse._VersionAction.version, and TiXmlDeclaration.version.

Referenced by argparse._VersionAction.__call__().

1015  def __call__(self, parser, namespace, values, option_string=None):
1016  version = self.version
1017  if version is None:
1018  version = parser.version
1019  formatter = parser._get_formatter()
1020  formatter.add_text(version)
1021  parser.exit(message=formatter.format_help())
1022 
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 1012 of file argparse.py.

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