Change --version and --version-and-path to not exit immediately, if a command is given.

This commit is contained in:
david-sarah
2011-01-20 23:59:13 -08:00
parent f3b4f4181c
commit 28bd80812f
2 changed files with 9 additions and 5 deletions

View File

@ -35,7 +35,9 @@ class Options(BaseOptions, usage.Options):
def postOptions(self):
if not hasattr(self, 'subOptions'):
raise usage.UsageError("must specify a command")
if not hasattr(self, 'no_command_needed'):
raise usage.UsageError("must specify a command")
sys.exit(0)
create_dispatch = {}