summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-04 09:27:28 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-04 09:27:28 +0000
commit22d9b8c078844127b8ea8217a9a9ed8f172afb99 (patch)
tree1e52a58c9664e8a32b2a77d8bf25587f6afd11f8 /ipalib
parent553b0c596d9dc1a955aece1fab28bd0cf3c81119 (diff)
downloadfreeipa-22d9b8c078844127b8ea8217a9a9ed8f172afb99.tar.gz
freeipa-22d9b8c078844127b8ea8217a9a9ed8f172afb99.tar.xz
freeipa-22d9b8c078844127b8ea8217a9a9ed8f172afb99.zip
265: Fixed small formatting error with use of CLI.print_commands()
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/cli.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index 25fbec02a..5ead9837d 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -107,6 +107,7 @@ class CLI(object):
print '\nSpecial CLI commands:'
for cmd in self.api.Application():
self.print_cmd(cmd)
+ print ''
def print_cmd(self, cmd):
print ' %s %s' % (
@@ -114,8 +115,6 @@ class CLI(object):
cmd.doc,
)
-
-
def __contains__(self, key):
assert self.__d is not None, 'you must call finalize() first'
return key in self.__d
@@ -139,12 +138,11 @@ class CLI(object):
(c.name.replace('_', '-'), c) for c in self.api.Command()
)
-
def run(self):
self.finalize()
if len(sys.argv) < 2:
self.print_commands()
- print '\nUsage: ipa COMMAND'
+ print 'Usage: ipa COMMAND'
sys.exit(2)
key = sys.argv[1]
if key not in self: