Mercurial > gub
changeset 2482:e0bf4b79de26
Bugfix and cleanup: actually show commands.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Tue, 24 Oct 2006 18:15:34 +0100 |
parents | be402ea26813 |
children | 13450225da58 |
files | gup-manager.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/gup-manager.py Tue Oct 24 17:46:41 2006 +0100 +++ b/gup-manager.py Tue Oct 24 18:15:34 2006 +0100 @@ -90,11 +90,11 @@ def get_cli_parser (): p = optparse.OptionParser () - if 1: - d = Command.__dict__ - commands = [(k, d[k].__doc__) for k in d.keys () - - if d[k].__doc__ and type (d[k]) == type (Command.remove)] + p.usage = '%prog [OPTION]... COMMAND\n\nCommands:\n' + d = Command.__dict__ + commands = [(k, d[k].__doc__) for k in d.keys () + if d[k].__doc__ and type (d[k]) == type (lambda x: x)] + commands.sort () commands.sort () for (command,doc) in commands: