148: Added some basic out put for cli.help.__call__() method

This commit is contained in:
Jason Gerard DeRose 2008-08-13 07:20:10 +00:00
parent 024345e1f0
commit fe7440735d

View File

@ -46,6 +46,11 @@ def from_cli(cli_name):
class help(public.cmd):
'display help on command'
def __call__(self, key):
if from_cli(key) not in self.api.cmd:
print 'help: no such command %r' % key
sys.exit(2)
print 'Help on command %r:' % key
class CLI(object):