mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
140: Added a skeleton help command in cli.py
This commit is contained in:
@@ -44,6 +44,10 @@ def from_cli(cli_name):
|
||||
return cli_name.replace('-', '_')
|
||||
|
||||
|
||||
class help(public.cmd):
|
||||
'display help on command'
|
||||
|
||||
|
||||
class CLI(object):
|
||||
__d = None
|
||||
__mcl = None
|
||||
@@ -73,6 +77,7 @@ class CLI(object):
|
||||
|
||||
def finalize(self):
|
||||
api = self.api
|
||||
api.register(help)
|
||||
api.finalize()
|
||||
def d_iter():
|
||||
for cmd in api.cmd:
|
||||
|
||||
Reference in New Issue
Block a user