diff options
author | Adrian Likins <alikins@redhat.com> | 2008-06-26 17:03:55 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-06-26 17:03:55 -0400 |
commit | c32f90cfb0ec131eded7cf7da7568e3853a1b265 (patch) | |
tree | 8e3d1dd5e69e06d7ade3f38a362666fc3f69e7d4 /func/overlord/command.py | |
parent | 7130f3b2bcd01d978a564eca9e2a4f739db22262 (diff) | |
download | third_party-func-c32f90cfb0ec131eded7cf7da7568e3853a1b265.tar.gz third_party-func-c32f90cfb0ec131eded7cf7da7568e3853a1b265.tar.xz third_party-func-c32f90cfb0ec131eded7cf7da7568e3853a1b265.zip |
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
Diffstat (limited to 'func/overlord/command.py')
-rw-r--r-- | func/overlord/command.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |