mirror of
https://github.com/certbot/certbot.git
synced 2026-01-24 19:22:07 +03:00
Make addition of conflicting flags look similar
This commit is contained in:
@@ -850,8 +850,7 @@ class HelpfulArgumentParser(object):
|
||||
if (parsed_args.server not in
|
||||
(flag_default("server"), constants.STAGING_URI)):
|
||||
conflicts = ["--staging"] if parsed_args.staging else []
|
||||
if parsed_args.dry_run:
|
||||
conflicts.append("--dry-run")
|
||||
conflicts += ["--dry-run"] if parsed_args.dry_run else []
|
||||
raise errors.Error("--server value conflicts with {0}".format(
|
||||
" and ".join(conflicts)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user