summaryrefslogtreecommitdiff
path: root/distutils2/run.py
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2012-05-16 01:06:53 -0400
committer?ric Araujo <merwok@netwok.org>2012-05-16 01:06:53 -0400
commit5ffba496119972cddc5e14f6836c8fec44507c5d (patch)
tree4044019eb86635c9ada8b14996b18f03cd529577 /distutils2/run.py
parent477f787a64f10e743ba7ed66008d853156b3fed5 (diff)
parent7c7f383ef9e6a6e0189d7515f4b2ec37ffa445a9 (diff)
downloaddisutils2-5ffba496119972cddc5e14f6836c8fec44507c5d.tar.gz
Merge further changes by Montreal sprinters
Diffstat (limited to 'distutils2/run.py')
-rw-r--r--distutils2/run.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/distutils2/run.py b/distutils2/run.py
index f571baa..71fbe03 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() # TODO list only commands, not actions
sys.exit('error: invalid command name %r' % command)
self.commands.append(command)
@@ -445,7 +446,7 @@ class Dispatcher(object):
try:
cmd_class = get_command_class(command)
except PackagingModuleError, msg:
- self.show_help()
+ self.show_help() # TODO list only commands, not actions
sys.exit('error: command %r not recognized' % command)
# XXX We want to push this in distutils2.command