From 132a6f08cf60ac518fd6e7ba91b8efd6a082af4d Mon Sep 17 00:00:00 2001 From: Patrice Gauthier Date: Mon, 14 May 2012 15:43:42 -0400 Subject: #13399 - some tweaking --- distutils2/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distutils2/run.py b/distutils2/run.py index 1729761..133efc8 100644 --- a/distutils2/run.py +++ b/distutils2/run.py @@ -436,6 +436,7 @@ class Dispatcher(object): # Pull the current command from the head of the command line command = args[0] if not command_re.match(command): + self.show_help() raise SystemExit("invalid command name %r" % (command,)) self.commands.append(command) @@ -537,7 +538,7 @@ class Dispatcher(object): self._show_help(self.parser) def exit_with_error_msg(self, msg): - sys.exit('error: ' + msg.__str__()) + sys.exit('error: %s ' % msg) def print_usage(self, parser): parser.set_option_table(global_options) -- cgit v1.2.1