From df42cca26ea0c98aae2e61709772a1b181efc21e Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Tue, 8 Sep 2015 08:58:43 -0700 Subject: [PATCH] More useful explanation of --duplicate --- letsencrypt/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/letsencrypt/cli.py b/letsencrypt/cli.py index 182e2bbc5..cb9eec2b1 100644 --- a/letsencrypt/cli.py +++ b/letsencrypt/cli.py @@ -237,8 +237,9 @@ def run(args, config, plugins): # pylint: disable=too-many-locals,too-many-bran treat_as_renewal = True else: msg = "To obtain a new certificate that {0} an existing " - msg += "certificate in its domain-name coverage, consult the " - msg += "documentation about the --duplicate option." + msg += "certificate in its domain-name coverage, you must use " + msg += "the --duplicate option.\n\nFor example:\n\n" + msg += sys.argv[0] + " --duplicate " + " ".join(sys.argv[1:]) what = "duplicates" if identical_names_cert else "overlaps with" msg = msg.format(what) reporter_util = zope.component.getUtility(interfaces.IReporter)