mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-19 15:53:48 +00:00
Change --version and --version-and-path to not exit immediately, if a command is given.
This commit is contained in:
@ -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 = {}
|
||||
|
Reference in New Issue
Block a user