Teach certbot about certbot-auto's new --pypi-mirror option so it doesn't throw an unknown-arg error.

This commit is contained in:
Erik Rose 2017-10-03 14:46:37 -04:00
parent 65bd307905
commit 32b0727a32
2 changed files with 6 additions and 0 deletions

View file

@ -1024,6 +1024,11 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False): # pylint: dis
help="(certbot-auto only) prevent the certbot-auto script from"
" installing OS-level dependencies (default: Prompt to install "
" OS-wide dependencies, but exit if the user says 'No')")
helpful.add(
"automation", "--pypi-mirror", action="store_true",
default=flag_default("pypi_mirror"),
help="(certbot-auto only) use an alternative Python package server "
"that is reachable from China")
helpful.add(
["automation", "renew", "certonly", "run"],
"-q", "--quiet", dest="quiet", action="store_true",

View file

@ -44,6 +44,7 @@ CLI_DEFAULTS = dict(
os_packages_only=False,
no_self_upgrade=False,
no_bootstrap=False,
pypi_mirror=False,
quiet=False,
staging=False,
debug=False,