Package logilab :: 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
 
do_help(self, command=None)
base input of the help system
source code
 
do_quit(self)
quit the CLI
source code
 
handle_line(self, stripped_line)
Method to overload in the concrete class (should handle lines which are not commands).
source code
 
help_do_quit(self) source code
 
run(self)
loop on user input, exit on EOF
source code
Class Variables
  CMD_MAP = {'help': 'Others', 'quit': 'Others'}
  CMD_PREFIX = ''
  help_do_help = ('help', 'help [topic|command]', 'print help me...
Class Variable Details

help_do_help

Value:
('help',
 'help [topic|command]',
 'print help message for the given topic/command or available topics w\
hen no argument')