Package logilab-common-0 :: Package 36 :: Package 1 :: Module optik_ext
[frames] | no frames]

Module optik_ext

source code

Add an abstraction level to transparently import optik classes from optparse
(python >= 2.3) or the optik package.

It also defines three new types for optik/optparse command line parser :

  * regexp
    argument of this type will be converted using re.compile
  * csv
    argument of this type will be converted using split(',')
  * yn
    argument of this type will be true if 'y' or 'yes', false if 'n' or 'no'
  * named
    argument of this type are in the form <NAME>=<VALUE> or <NAME>:<VALUE>


:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:license: General Public License version 2 - http://www.gnu.org/licenses

Classes
  Option
override optik.Option to add some new option types...
  OptionParser
override optik.OptionParser to use our Option class...
Variables
  OptionGroup
  OptionValueError
  Values