summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index d17d12bc..8f09e90c 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -65,7 +65,7 @@ class CLI(object):
def print_commands(self):
print 'Available Commands:'
- for cmd in self.api.cmd:
+ for cmd in self.api.cmd():
print ' %s %s' % (
to_cli(cmd.name).ljust(self.mcl),
cmd.doc,
@@ -84,7 +84,7 @@ class CLI(object):
api.register(help)
api.finalize()
def d_iter():
- for cmd in api.cmd:
+ for cmd in api.cmd():
yield (to_cli(cmd.name), cmd)
self.__d = dict(d_iter())