| |
- commander
-
- evaluator
class commander |
|
a base class to interpret a command line |
|
Methods defined here:
- ResolveOptions(self)
- Interpret the command line options.
- __init__(self, lsLine)
- Initialize self.
- __repr__(self)
- Reproduce the Python instantiation call.
- __str__(self, sName=None)
- Reproduce the command line (bug: some args need quotes).
- main(self)
- Pass each command line argument to main1().
- main1(self, sArg)
- Echo a command line argument on its own line.
- options(self)
- Populate the option parser with available options.
Data and other attributes defined here:
- sUsage = None
- sVersion = '%prog 2008.06.22.0'
|
class evaluator(commander) |
|
abstract base class for a commander that applies a function to arguments from the command line and optionally standard input |
|
Methods defined here:
- function(self, sArg)
- Define this to be the function you want to apply to the arguments.
- main(self)
- Process the command line and optionally standard input.
- main1(self, sArg)
- Apply function() to the argument.
- options(self)
- Populate the option parser with available options.
Methods inherited from commander:
- ResolveOptions(self)
- Interpret the command line options.
- __init__(self, lsLine)
- Initialize self.
- __repr__(self)
- Reproduce the Python instantiation call.
- __str__(self, sName=None)
- Reproduce the command line (bug: some args need quotes).
Data and other attributes inherited from commander:
- sUsage = None
- sVersion = '%prog 2008.06.22.0'
| |