Don't include INTERNAL commands in ipa help commands output.

ticket 463
This commit is contained in:
Rob Crittenden
2010-11-10 16:51:00 -05:00
committed by Adam Young
parent e1888f82c4
commit 1db42b5461

View File

@@ -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)