From c32f90cfb0ec131eded7cf7da7568e3853a1b265 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 26 Jun 2008 17:03:55 -0400 Subject: add a "summary" to the cmd_module classes so the help can get to them. make "func help" work again. Sorta. It's better, but it's still not right. At least it doesnt traceback now. remove a spurious debug statement in the command parser --- func/overlord/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'func/overlord/command.py') diff --git a/func/overlord/command.py b/func/overlord/command.py index aa21ddb..4b815f0 100644 --- a/func/overlord/command.py +++ b/func/overlord/command.py @@ -135,6 +135,7 @@ class Command: for name, command in self.subCommands.items(): formatter.addCommand(name, command.summary or command.description) + print formatter.format_description("") # expand %command for the bottom usage usage = self.usage or self.name @@ -197,7 +198,6 @@ class Command: # handle pleas for help if args and args[0] == 'help': - self.debug('Asked for help, args %r' % args) # give help on current command if only 'help' is passed if len(args) == 1: -- cgit