Package common :: Module cli :: Class CLIHelper
[frames] | no frames]

Class CLIHelper

source code

An abstract command line interface client which recognize commands
and provide an help system.

Instance Methods
 
__init__(self, histfile=None) source code
 
run(self)
loop on user input, exit on EOF
source code
 
handle_line(self, stripped_line)
Method to overload in the concrete class (should handle lines which are not commands).
source code
 
do_help(self, command=None)
base input of the help system
source code
 
do_quit(self)
quit the CLI
source code
 
help_do_quit(self) source code
Class Variables
  CMD_MAP = {'help': _("Others"), 'quit': _("Others"),}
  CMD_PREFIX = ''
  help_do_help = "help", "help [topic|command]", _("print help m...
Class Variable Details

help_do_help

Value:
"help", "help [topic|command]", _("print help message for the given to\
pic/command or \
available topics when no argument")