mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
cli: dont use argv[0] in user-facing messages (#8857)
This commit is contained in:
@@ -202,7 +202,7 @@ def _handle_subset_cert_request(config: configuration.NamespaceConfig,
|
|||||||
"--duplicate option.{br}{br}"
|
"--duplicate option.{br}{br}"
|
||||||
"For example:{br}{br}{1} --duplicate {2}".format(
|
"For example:{br}{br}{1} --duplicate {2}".format(
|
||||||
existing,
|
existing,
|
||||||
sys.argv[0], " ".join(sys.argv[1:]),
|
cli.cli_command, " ".join(sys.argv[1:]),
|
||||||
br=os.linesep
|
br=os.linesep
|
||||||
))
|
))
|
||||||
raise errors.Error(USER_CANCELLED)
|
raise errors.Error(USER_CANCELLED)
|
||||||
@@ -1052,7 +1052,7 @@ def enhance(config, plugins):
|
|||||||
if not enhancements.are_requested(config) and not oldstyle_enh:
|
if not enhancements.are_requested(config) and not oldstyle_enh:
|
||||||
msg = ("Please specify one or more enhancement types to configure. To list "
|
msg = ("Please specify one or more enhancement types to configure. To list "
|
||||||
"the available enhancement types, run:\n\n%s --help enhance\n")
|
"the available enhancement types, run:\n\n%s --help enhance\n")
|
||||||
logger.error(msg, sys.argv[0])
|
logger.error(msg, cli.cli_command)
|
||||||
raise errors.MisconfigurationError("No enhancements requested, exiting.")
|
raise errors.MisconfigurationError("No enhancements requested, exiting.")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user