From 1db42b546178469eb2f9c3505a149a5cd5fd724a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 10 Nov 2010 16:51:00 -0500 Subject: Don't include INTERNAL commands in `ipa help commands` output. ticket 463 --- ipalib/cli.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/cli.py') 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) -- cgit