summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-13 03:15:00 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-13 03:15:00 +0000
commitb9fa9dc2403d979f59a9963635392bb895bb8138 (patch)
tree8a491618d519659d848b4d4fa63f235b2aef9b67 /ipalib
parent0fed74b56d1940f84e7b64c3661f21baabcb4616 (diff)
downloadfreeipa-b9fa9dc2403d979f59a9963635392bb895bb8138.tar.gz
freeipa-b9fa9dc2403d979f59a9963635392bb895bb8138.tar.xz
freeipa-b9fa9dc2403d979f59a9963635392bb895bb8138.zip
139: Removed dummy gettext _() func from cli.py; improved CLI.print_commands()
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/cli.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 7ae8ae3bc..d6b2e7c1b 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,
)