summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 7ae8ae3b..d6b2e7c1 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -23,7 +23,7 @@ Functionality for Command Line Inteface.
import re
import sys
-import optparse
+import public
def to_cli(name):
@@ -44,10 +44,6 @@ def from_cli(cli_name):
return cli_name.replace('-', '_')
-def _(arg):
- return arg
-
-
class CLI(object):
__d = None
__mcl = None
@@ -60,8 +56,9 @@ class CLI(object):
api = property(__get_api)
def print_commands(self):
+ print 'Available Commands:'
for cmd in self.api.cmd:
- print ' %s %s' % (
+ print ' %s %s' % (
to_cli(cmd.name).ljust(self.mcl),
cmd.doc,
)