changeset 1:6cf716c40bb6

use the command name, not the command repr
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 16 Jul 2010 14:28:21 -0700
parents 9688c72a93c3
children 54b30e8f6f82
files gut/command.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():