# HG changeset patch # User Jeff Hammel # Date 1279315701 25200 # Node ID 6cf716c40bb645c3f9fbbfe152415006d8cab722 # Parent 9688c72a93c3c9d7d499f1332c8d5098236b1b04 use the command name, not the command repr diff -r 9688c72a93c3 -r 6cf716c40bb6 gut/command.py --- a/gut/command.py Fri Jul 16 13:55:58 2010 -0700 +++ b/gut/command.py Fri Jul 16 14:28:21 2010 -0700 @@ -171,7 +171,7 @@ command = self.commands[command] doc, argdict = self.doc2arghelp(command['doc']) if parser is None: - parser = OptionParser('%%prog %s %s' % (command, self.commandargs2str(command)), + parser = OptionParser('%%prog %s %s' % (command['name'], self.commandargs2str(command)), description=doc, add_help_option=False) if command['optional']: for key, value in command['optional'].items():