Package SCons :: Package compat :: Module _scons_optparse
[show private | hide private]
[frames | no frames]

Module SCons.compat._scons_optparse

optparse - a powerful, extensible, and easy-to-use option parser.

By Greg Ward <gward@python.net>

Originally distributed as Optik; see http://optik.sourceforge.net/ .

If you have problems with this module, please do not file bugs,
patches, or feature requests with Python; instead, use Optik's
SourceForge project page:
  http://sourceforge.net/projects/optik

For support, use the optik-users@lists.sourceforge.net mailing list
(http://lists.sourceforge.net/lists/listinfo/optik-users).

Classes
HelpFormatter Abstract base class for formatting option help.
IndentedHelpFormatter Format help with indented section bodies.
make_option _short_opts : [string] _long_opts : [string]
Option _short_opts : [string] _long_opts : [string]
OptionContainer Abstract base class.
OptionGroup  
OptionParser 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).
TitledHelpFormatter Format help with underlined section headers.
Values  

Exceptions
AmbiguousOptionError Raised if an ambiguous option is seen on the command line.
BadOptionError Raised if an invalid option is seen on the command line.
OptionConflictError Raised if conflicting options are added to an OptionParser.
OptionError Raised if an Option instance is created with invalid or inconsistent arguments.
OptionValueError Raised if an invalid option value is encountered on the command line.
OptParseError  

Function Summary
  _match_abbrev(s, wordmap)
_match_abbrev(s : string, wordmap : {string : Option}) -> string
  _parse_int(val)
  _parse_long(val)
  _parse_num(val, type)
  _repr(self)
  check_builtin(option, opt, value)
  check_choice(option, opt, value)
  encode_wrapper(s, encoding, replacement)
  isbasestring(x)

Function Details

_match_abbrev(s, wordmap)

_match_abbrev(s : string, wordmap : {string : Option}) -> string

Return the string key in 'wordmap' for which 's' is an unambiguous abbreviation. If 's' is found to be ambiguous or doesn't match any of 'words', raise BadOptionError.


Generated by Epydoc 2.1 on Wed Dec 12 09:39:31 2007 http://epydoc.sf.net