mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 03:14:21 +00:00
Go with a shorter name
This commit is contained in:
parent
6931d10ace
commit
13dae392cb
@ -129,7 +129,7 @@ def parse_options(argv, config=None):
|
||||
raise
|
||||
return config
|
||||
|
||||
def parse_or_exit_with_explanation_with_config(config, argv, stdout, stderr):
|
||||
def parse_or_exit(config, argv, stdout, stderr):
|
||||
"""
|
||||
Parse Tahoe-LAFS CLI arguments and return a configuration object if they
|
||||
are valid.
|
||||
@ -338,7 +338,7 @@ def _run_with_reactor(reactor, config, argv, stdout, stderr):
|
||||
|
||||
argv = list(map(argv_to_unicode, argv))
|
||||
d = defer.maybeDeferred(
|
||||
parse_or_exit_with_explanation_with_config,
|
||||
parse_or_exit,
|
||||
config,
|
||||
argv,
|
||||
stdout,
|
||||
|
@ -133,7 +133,7 @@ def run_cli_native(verb, *args, **kwargs):
|
||||
d = defer.succeed(argv)
|
||||
d.addCallback(
|
||||
partial(
|
||||
runner.parse_or_exit_with_explanation_with_config,
|
||||
runner.parse_or_exit,
|
||||
runner.Options(),
|
||||
),
|
||||
stdout=stdout,
|
||||
|
Loading…
x
Reference in New Issue
Block a user