Go with a shorter name

This commit is contained in:
Jean-Paul Calderone 2021-08-11 14:41:18 -04:00
parent 6931d10ace
commit 13dae392cb
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,