nupic.support.args
index
python2.5/site-packages/nupic/support/args.py

# ----------------------------------------------------------------------
#  Copyright (C) 2006,2007 Numenta Inc. All rights reserved.
#
#  The information and source code contained herein is the
#  exclusive property of Numenta Inc. No part of this software
#  may be used, reproduced, stored or distributed in any form,
#  without explicit written authorization from Numenta Inc.
# ----------------------------------------------------------------------

 
Modules
       
os
sys

 
Classes
       
__builtin__.object
FunOpts

 
class FunOpts(__builtin__.object)
    An argument parser designed to keep all the code for handling a single 
argument together.
 
  Methods defined here:
__init__(self, description, args)
__iter__(self)
assertOption(self, condition, msg)
failUnprocessed(self)
handle(self, doc, default, parser=<type 'str'>)
next(self)
parse(self, alias, name, parser, doc, default)
unrecognizedOption(self)
usage(self, msg, exit, short='error')

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
parseBool(x)
parseExistingPath(x, abs=True)
run(command, opts=[], args=[], **keywds)
Run a command-line program wth the specified options and arguments.
Raises an assertion error if the exit code of the program is not 0.