mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
148: Added some basic out put for cli.help.__call__() method
This commit is contained in:
parent
024345e1f0
commit
fe7440735d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user