| |
- __builtin__.object
-
- ArgumentHandlerMixIn
-
- Command
-
- OptparseCommand
- SubcommandCommand
class ArgumentHandlerMixIn(__builtin__.object) |
|
A structured way to handle command-line arguments.
In AddCommandLineArgs, add command-line arguments.
In ProcessCommandLineArgs, validate them and store them in a private class
variable. This way, each class encapsulates its own arguments, without needing
to pass an arguments object around everywhere. |
|
Class methods defined here:
- AddCommandLineArgs(cls, parser) from __builtin__.type
- Override to accept custom command-line arguments.
- ProcessCommandLineArgs(cls, parser, args) from __builtin__.type
- Override to process command-line arguments.
We pass in parser so we can call parser.error().
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|