CMS 3D CMS Logo

Private Member Functions

argparse::ArgumentDefaultsHelpFormatter Class Reference

Inheritance diagram for argparse::ArgumentDefaultsHelpFormatter:
argparse::HelpFormatter argparse::HelpFormatter

List of all members.

Private Member Functions

def _get_help_string
def _get_help_string

Detailed Description

Help message formatter which adds default values to argument help.

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


Member Function Documentation

def argparse::ArgumentDefaultsHelpFormatter::_get_help_string (   self,
  action 
) [private]

Reimplemented from argparse::HelpFormatter.

Definition at line 656 of file argparse.py.

00657                                       :
00658         help = action.help
00659         if '%(default)' not in action.help:
00660             if action.default is not SUPPRESS:
00661                 defaulting_nargs = [OPTIONAL, ZERO_OR_MORE]
00662                 if action.option_strings or action.nargs in defaulting_nargs:
00663                     help += ' (default: %(default)s)'
00664         return help
00665 
00666 
00667 # =====================
00668 # Options and Arguments
00669 # =====================

def argparse::ArgumentDefaultsHelpFormatter::_get_help_string (   self,
  action 
) [private]

Reimplemented from argparse::HelpFormatter.

Definition at line 673 of file argparse.py.

00673                                       :
00674         help = action.help
00675         if '%(default)' not in action.help:
00676             if action.default is not SUPPRESS:
00677                 defaulting_nargs = [OPTIONAL, ZERO_OR_MORE]
00678                 if action.option_strings or action.nargs in defaulting_nargs:
00679                     help += ' (default: %(default)s)'
00680         return help
00681 
00682 
00683 # =====================
00684 # Options and Arguments
00685 # =====================
00686