Trees | Indices | Help |
---|
|
Command class.
|
|||
CommandHelpFormatter I format the description as usual, but add an overview of commands after it if there are any, formatted like the options. |
|||
CommandOptionParser I parse options as usual, but I explicitly allow setting stdout so that our print_help() method (invoked by default with -h/--help) defaults to writing there. |
|||
Command I am a class that handles a command for a program. |
|||
CommandExited | |||
CommandOk | |||
CommandError |
|
|||
|
|
|||
__package__ =
|
|
Take a Command instance and create a Example use in a command: >>> def do(self, args): ... cmd = command.commandToCmd(self) ... cmd.prompt = 'prompt> ' ... while not cmd.exited: ... cmd.cmdloop() |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Mar 10 06:48:40 2011 | http://epydoc.sourceforge.net |