summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/cli.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index d6b2e7c1..6f0305d6 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -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: