mirror of
https://github.com/certbot/certbot.git
synced 2026-08-04 12:21:51 +02:00
Too many lines?
(That's probably true)
This commit is contained in:
+3
-4
@@ -1,5 +1,7 @@
|
|||||||
"""Let's Encrypt CLI."""
|
"""Let's Encrypt CLI."""
|
||||||
# TODO: Sanity check all input. Be sure to avoid shell code etc...
|
# TODO: Sanity check all input. Be sure to avoid shell code etc...
|
||||||
|
# pylint: disable=too-many-lines
|
||||||
|
# (TODO: split this file into main.py and cli.py)
|
||||||
import argparse
|
import argparse
|
||||||
import atexit
|
import atexit
|
||||||
import functools
|
import functools
|
||||||
@@ -384,7 +386,6 @@ def diagnose_configurator_problem(cfg_type, requested, plugins):
|
|||||||
def choose_configurator_plugins(args, config, plugins, verb): # pylint: disable=too-many-branches
|
def choose_configurator_plugins(args, config, plugins, verb): # pylint: disable=too-many-branches
|
||||||
"""
|
"""
|
||||||
Figure out which configurator we're going to use
|
Figure out which configurator we're going to use
|
||||||
|
|
||||||
:raises error.PluginSelectionError if there was a problem
|
:raises error.PluginSelectionError if there was a problem
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -802,7 +803,6 @@ class HelpfulArgumentParser(object):
|
|||||||
return dict([(t, t == chosen_topic) for t in self.help_topics])
|
return dict([(t, t == chosen_topic) for t in self.help_topics])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def prepare_and_parse_args(plugins, args):
|
def prepare_and_parse_args(plugins, args):
|
||||||
"""Returns parsed command line arguments.
|
"""Returns parsed command line arguments.
|
||||||
|
|
||||||
@@ -946,8 +946,7 @@ def _create_subparsers(helpful):
|
|||||||
help="Set a custom user agent string for the client. User agent strings allow "
|
help="Set a custom user agent string for the client. User agent strings allow "
|
||||||
"the CA to collect high level statistics about success rates by OS and "
|
"the CA to collect high level statistics about success rates by OS and "
|
||||||
"plugin. If you wish to hide your server OS version from the Let's "
|
"plugin. If you wish to hide your server OS version from the Let's "
|
||||||
'Encrypt server, set this to "".'
|
'Encrypt server, set this to "".')
|
||||||
)
|
|
||||||
helpful.add("certonly",
|
helpful.add("certonly",
|
||||||
"--csr", type=read_file,
|
"--csr", type=read_file,
|
||||||
help="Path to a Certificate Signing Request (CSR) in DER"
|
help="Path to a Certificate Signing Request (CSR) in DER"
|
||||||
|
|||||||
Reference in New Issue
Block a user