Classes | |
class | _Section |
Public Member Functions | |
def | __init__ (self, prog, indent_increment=2, max_help_position=24, width=None) |
def | add_argument (self, action) |
def | add_arguments (self, actions) |
def | add_text (self, text) |
def | add_usage (self, usage, actions, groups, prefix=None) |
def | end_section (self) |
def | format_help (self) |
def | start_section (self, heading) |
Private Member Functions | |
def | _add_item (self, func, args) |
def | _dedent (self) |
def | _expand_help (self, action) |
def | _fill_text (self, text, width, indent) |
def | _format_action (self, action) |
def | _format_action_invocation (self, action) |
def | _format_actions_usage (self, actions, groups) |
def | _format_args (self, action, default_metavar) |
def | _format_text (self, text) |
def | _format_usage (self, usage, actions, groups, prefix) |
def | _get_help_string (self, action) |
def | _indent (self) |
def | _iter_indented_subactions (self, action) |
def | _join_parts (self, part_strings) |
def | _metavar_formatter (self, action, default_metavar) |
def | _split_lines (self, text, width) |
Private Attributes | |
_action_max_length | |
_current_indent | |
_current_section | |
_indent_increment | |
_level | |
_long_break_matcher | |
_max_help_position | |
_prog | |
_root_section | |
_whitespace_matcher | |
_width | |
Formatter for generating usage messages and argument help strings. Only the name of this class is considered a public API. All the methods provided by the class are considered an implementation detail.
Definition at line 177 of file argparse.py.
def argparse.HelpFormatter.__init__ | ( | self, | |
prog, | |||
indent_increment = 2 , |
|||
max_help_position = 24 , |
|||
width = None |
|||
) |
Definition at line 188 of file argparse.py.
References createfilelist.int.
|
private |
Definition at line 258 of file argparse.py.
Referenced by argparse.HelpFormatter.add_argument(), argparse.HelpFormatter.add_text(), argparse.HelpFormatter.add_usage(), and argparse.HelpFormatter.start_section().
|
private |
Definition at line 220 of file argparse.py.
References argparse.HelpFormatter._current_indent, python.rootplot.argparse.HelpFormatter._current_indent, argparse.HelpFormatter._indent_increment, python.rootplot.argparse.HelpFormatter._indent_increment, PGeometricDet::Item._level, RPCMuonExtraStruct._level, TrackerGeometryCompare._level, MuonGeometryArrange._level, argparse.HelpFormatter._level, and python.rootplot.argparse.HelpFormatter._level.
Referenced by argparse.HelpFormatter._iter_indented_subactions(), and argparse.HelpFormatter.end_section().
|
private |
Definition at line 610 of file argparse.py.
References argparse.HelpFormatter._get_help_string(), python.rootplot.argparse.HelpFormatter._get_help_string(), python.rootplot.argparse.ArgumentDefaultsHelpFormatter._get_help_string(), argparse.HelpFormatter._prog, python.rootplot.argparse.HelpFormatter._prog, cmsPerfStripChart.dict, join(), list(), and harvestTrackValidationPlots.str.
Referenced by argparse.HelpFormatter._format_action().
|
private |
Definition at line 635 of file argparse.py.
References digi_MixPreMix_cfi.strip.
Referenced by argparse.HelpFormatter._format_text().
|
private |
Definition at line 507 of file argparse.py.
References argparse.HelpFormatter._action_max_length, python.rootplot.argparse.HelpFormatter._action_max_length, argparse.HelpFormatter._current_indent, python.rootplot.argparse.HelpFormatter._current_indent, argparse.HelpFormatter._expand_help(), python.rootplot.argparse.HelpFormatter._expand_help(), argparse.HelpFormatter._format_action(), python.rootplot.argparse.HelpFormatter._format_action(), argparse.HelpFormatter._format_action_invocation(), python.rootplot.argparse.HelpFormatter._format_action_invocation(), argparse.HelpFormatter._iter_indented_subactions(), python.rootplot.argparse.HelpFormatter._iter_indented_subactions(), argparse.HelpFormatter._join_parts(), python.rootplot.argparse.HelpFormatter._join_parts(), argparse.HelpFormatter._max_help_position, python.rootplot.argparse.HelpFormatter._max_help_position, extend_argparse.HelpFormatterRespectNewlines._split_lines(), argparse.HelpFormatter._split_lines(), python.rootplot.argparse.HelpFormatter._split_lines(), python.rootplot.argparse.RawTextHelpFormatter._split_lines(), Vispa.Main.RotatingIcon.RotatingIcon._width, Vispa.Gui.VispaWidget.TextField._width, TFitConstraintMGaus._width, argparse.HelpFormatter._width, python.rootplot.argparse.HelpFormatter._width, and min().
Referenced by argparse.HelpFormatter._format_action(), and argparse.HelpFormatter.add_argument().
|
private |
Definition at line 554 of file argparse.py.
References argparse.HelpFormatter._format_args(), python.rootplot.argparse.HelpFormatter._format_args(), argparse.HelpFormatter._metavar_formatter(), python.rootplot.argparse.HelpFormatter._metavar_formatter(), and join().
Referenced by argparse.HelpFormatter._format_action(), and argparse.HelpFormatter.add_argument().
|
private |
Definition at line 412 of file argparse.py.
References argparse.HelpFormatter._format_args(), python.rootplot.argparse.HelpFormatter._format_args(), argparse._set, argparse._sorted, and join().
Referenced by argparse.HelpFormatter._format_usage().
|
private |
Definition at line 593 of file argparse.py.
References argparse.HelpFormatter._metavar_formatter(), python.rootplot.argparse.HelpFormatter._metavar_formatter(), and join().
Referenced by argparse.HelpFormatter._format_action_invocation(), and argparse.HelpFormatter._format_actions_usage().
|
private |
Definition at line 502 of file argparse.py.
References argparse.HelpFormatter._current_indent, python.rootplot.argparse.HelpFormatter._current_indent, argparse.HelpFormatter._fill_text(), python.rootplot.argparse.HelpFormatter._fill_text(), python.rootplot.argparse.RawDescriptionHelpFormatter._fill_text(), Vispa.Main.RotatingIcon.RotatingIcon._width, Vispa.Gui.VispaWidget.TextField._width, TFitConstraintMGaus._width, argparse.HelpFormatter._width, and python.rootplot.argparse.HelpFormatter._width.
Referenced by argparse.HelpFormatter.add_text().
|
private |
Definition at line 320 of file argparse.py.
References crabWrapper._, argparse.HelpFormatter._current_indent, python.rootplot.argparse.HelpFormatter._current_indent, argparse.HelpFormatter._format_actions_usage(), python.rootplot.argparse.HelpFormatter._format_actions_usage(), argparse.HelpFormatter._prog, python.rootplot.argparse.HelpFormatter._prog, Vispa.Main.RotatingIcon.RotatingIcon._width, Vispa.Gui.VispaWidget.TextField._width, TFitConstraintMGaus._width, argparse.HelpFormatter._width, python.rootplot.argparse.HelpFormatter._width, cmsPerfStripChart.dict, and join().
Referenced by argparse.HelpFormatter.add_usage().
|
private |
Definition at line 640 of file argparse.py.
Referenced by argparse.HelpFormatter._expand_help().
|
private |
Definition at line 216 of file argparse.py.
References argparse.HelpFormatter._current_indent, python.rootplot.argparse.HelpFormatter._current_indent, argparse.HelpFormatter._indent_increment, python.rootplot.argparse.HelpFormatter._indent_increment, PGeometricDet::Item._level, RPCMuonExtraStruct._level, TrackerGeometryCompare._level, MuonGeometryArrange._level, argparse.HelpFormatter._level, and python.rootplot.argparse.HelpFormatter._level.
Referenced by argparse.HelpFormatter._iter_indented_subactions(), ntuplePrintersDiff._IndentPrinter.indent(), ntuplePrintersDiff._IndentPrinter.setIndentFrom(), and argparse.HelpFormatter.start_section().
|
private |
Definition at line 620 of file argparse.py.
References argparse.HelpFormatter._dedent(), python.rootplot.argparse.HelpFormatter._dedent(), argparse.HelpFormatter._indent(), and python.rootplot.argparse.HelpFormatter._indent().
Referenced by argparse.HelpFormatter._format_action(), and argparse.HelpFormatter.add_argument().
|
private |
Definition at line 315 of file argparse.py.
References join().
Referenced by argparse.HelpFormatter._format_action().
|
private |
Definition at line 577 of file argparse.py.
References cmsPerfStripChart.format, join(), and harvestTrackValidationPlots.str.
Referenced by argparse.HelpFormatter._format_action_invocation(), and argparse.HelpFormatter._format_args().
|
private |
Definition at line 631 of file argparse.py.
References digi_MixPreMix_cfi.strip.
Referenced by argparse.HelpFormatter._format_action().
def argparse.HelpFormatter.add_argument | ( | self, | |
action | |||
) |
Definition at line 283 of file argparse.py.
References argparse.HelpFormatter._action_max_length, python.rootplot.argparse.HelpFormatter._action_max_length, argparse.HelpFormatter._add_item(), python.rootplot.argparse.HelpFormatter._add_item(), argparse.HelpFormatter._current_indent, python.rootplot.argparse.HelpFormatter._current_indent, argparse.HelpFormatter._format_action(), python.rootplot.argparse.HelpFormatter._format_action(), argparse.HelpFormatter._format_action_invocation(), python.rootplot.argparse.HelpFormatter._format_action_invocation(), argparse.HelpFormatter._iter_indented_subactions(), python.rootplot.argparse.HelpFormatter._iter_indented_subactions(), and SiStripPI.max.
Referenced by argparse.HelpFormatter.add_arguments().
def argparse.HelpFormatter.add_arguments | ( | self, | |
actions | |||
) |
Definition at line 301 of file argparse.py.
References argparse.HelpFormatter.add_argument(), python.rootplot.argparse.HelpFormatter.add_argument(), and python.rootplot.argparse._ActionsContainer.add_argument().
def argparse.HelpFormatter.add_text | ( | self, | |
text | |||
) |
Definition at line 274 of file argparse.py.
References argparse.HelpFormatter._add_item(), python.rootplot.argparse.HelpFormatter._add_item(), argparse.HelpFormatter._format_text(), and python.rootplot.argparse.HelpFormatter._format_text().
Definition at line 278 of file argparse.py.
References argparse.HelpFormatter._add_item(), python.rootplot.argparse.HelpFormatter._add_item(), argparse.HelpFormatter._format_usage(), and python.rootplot.argparse.HelpFormatter._format_usage().
def argparse.HelpFormatter.end_section | ( | self | ) |
Definition at line 270 of file argparse.py.
References argparse.HelpFormatter._current_section, python.rootplot.argparse.HelpFormatter._current_section, argparse.HelpFormatter._dedent(), and python.rootplot.argparse.HelpFormatter._dedent().
def argparse.HelpFormatter.format_help | ( | self | ) |
def argparse.HelpFormatter.start_section | ( | self, | |
heading | |||
) |
Definition at line 264 of file argparse.py.
References argparse.HelpFormatter._add_item(), python.rootplot.argparse.HelpFormatter._add_item(), argparse.HelpFormatter._current_section, python.rootplot.argparse.HelpFormatter._current_section, argparse.HelpFormatter._indent(), and python.rootplot.argparse.HelpFormatter._indent().
|
private |
Definition at line 205 of file argparse.py.
Referenced by argparse.HelpFormatter._format_action(), and argparse.HelpFormatter.add_argument().
|
private |
Definition at line 203 of file argparse.py.
Referenced by argparse.HelpFormatter._dedent(), argparse.HelpFormatter._format_action(), argparse.HelpFormatter._format_text(), argparse.HelpFormatter._format_usage(), argparse.HelpFormatter._indent(), and argparse.HelpFormatter.add_argument().
|
private |
Definition at line 208 of file argparse.py.
Referenced by argparse.HelpFormatter.end_section(), and argparse.HelpFormatter.start_section().
|
private |
Definition at line 199 of file argparse.py.
Referenced by argparse.HelpFormatter._dedent(), and argparse.HelpFormatter._indent().
|
private |
Definition at line 204 of file argparse.py.
Referenced by argparse.HelpFormatter._dedent(), and argparse.HelpFormatter._indent().
|
private |
Definition at line 211 of file argparse.py.
|
private |
Definition at line 200 of file argparse.py.
Referenced by argparse.HelpFormatter._format_action().
|
private |
Definition at line 198 of file argparse.py.
Referenced by argparse.HelpFormatter._expand_help(), and argparse.HelpFormatter._format_usage().
|
private |
Definition at line 207 of file argparse.py.
|
private |
Definition at line 210 of file argparse.py.
|
private |
Definition at line 201 of file argparse.py.
Referenced by argparse.HelpFormatter._format_action(), argparse.HelpFormatter._format_text(), and argparse.HelpFormatter._format_usage().