diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-11-10 16:51:00 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-11-10 20:20:29 -0500 |
commit | 1db42b546178469eb2f9c3505a149a5cd5fd724a (patch) | |
tree | 61ebc02a2365b8e80ae0150dbeb4d1ef905b08fe /ipalib/cli.py | |
parent | e1888f82c46a881297e20454b126a19c79f2170b (diff) | |
download | freeipa-1db42b546178469eb2f9c3505a149a5cd5fd724a.tar.gz freeipa-1db42b546178469eb2f9c3505a149a5cd5fd724a.tar.xz freeipa-1db42b546178469eb2f9c3505a149a5cd5fd724a.zip |
Don't include INTERNAL commands in `ipa help commands` output.
ticket 463
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 6d057ca93..41bee7a8c 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -658,6 +658,8 @@ class help(frontend.Local): mcl = max(len(s) for s in (self.Command)) for cname in self.Command: cmd = self.Command[cname] + if cmd.INTERNAL: + continue print '%s %s' % (to_cli(cmd.name).ljust(mcl), cmd.summary) else: raise HelpError(topic=name) |