Logo Search packages:      
Sourcecode: jhbuild version File versions  Download package

jhbuild::cut_n_paste::optparse::OptionContainer Class Reference

Inheritance diagram for jhbuild::cut_n_paste::optparse::OptionContainer:


List of all members.

Detailed Description

Abstract base class.

Class attributes:
  standard_option_list : [Option]
    list of standard options that will be accepted by all instances
    of this parser class (intended to be overridden by subclasses).

Instance attributes:
  option_list : [Option]
    the list of Option objects contained by this OptionContainer
  _short_opt : { string : Option }
    dictionary mapping short option strings, eg. "-f" or "-X",
    to the Option instances that implement them.  If an Option
    has multiple short option strings, it will appears in this
    dictionary multiple times. [1]
  _long_opt : { string : Option }
    dictionary mapping long option strings, eg. "--file" or
    "--exclude", to the Option instances that implement them.
    Again, a given Option can occur multiple times in this
    dictionary. [1]
  defaults : { string : any }
    dictionary mapping option destination names to default
    values for each destination [1]

[1] These mappings are common to (shared by) all components of the
    controlling OptionParser, where they are initially created.

Definition at line 892 of file optparse.py.

Public Member Functions

def __init__
def add_option
def add_options
def destroy
def format_description
def format_help
def format_option_help
def get_description
def get_option
def has_option
def remove_option
def set_conflict_handler
def set_description

Public Attributes


Private Member Functions

def _check_conflict
def _create_option_mappings
def _share_option_mappings

Private Attributes


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index