From b529250535da798a3219956a3e8c8ab2225c37f1 Mon Sep 17 00:00:00 2001 From: Noah Swartz Date: Tue, 12 Sep 2017 10:52:51 -0700 Subject: [PATCH 1/2] add a help output for cert-name --- certbot/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/certbot/cli.py b/certbot/cli.py index 97954004baf..bdf742dab7d 100644 --- a/certbot/cli.py +++ b/certbot/cli.py @@ -943,6 +943,11 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False): # pylint: dis helpful.add(["register", "automation"], "--no-eff-email", action="store_false", default=None, dest="eff_email", help="Don't share your e-mail address with EFF") + helpful.add( + ["certonly", "run", "renew", "manage"], "--cert-name", + help="Flag to specify a particular certificate for the run, certonly," + " certificates, renew, and delete commands. To get a list of all" + "certificates that Certbot knows about run 'certbot certificates'") helpful.add( ["automation", "certonly", "run"], "--keep-until-expiring", "--keep", "--reinstall", From 174a006d9c97fcfd84167d5b025420d7576c92ef Mon Sep 17 00:00:00 2001 From: Noah Swartz Date: Wed, 13 Sep 2017 11:37:07 -0700 Subject: [PATCH 2/2] add renew to existing doc --- certbot/cli.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/certbot/cli.py b/certbot/cli.py index bdf742dab7d..671f8a28487 100644 --- a/certbot/cli.py +++ b/certbot/cli.py @@ -897,7 +897,7 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False): # pylint: dis "specified or you already have a certificate for the same " "domains. (default: Ask)") helpful.add( - [None, "run", "certonly", "manage", "delete", "certificates"], + [None, "run", "certonly", "manage", "delete", "certificates", "renew"], "--cert-name", dest="certname", metavar="CERTNAME", default=None, help="Certificate name to apply. This name is used by Certbot for housekeeping " @@ -943,11 +943,6 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False): # pylint: dis helpful.add(["register", "automation"], "--no-eff-email", action="store_false", default=None, dest="eff_email", help="Don't share your e-mail address with EFF") - helpful.add( - ["certonly", "run", "renew", "manage"], "--cert-name", - help="Flag to specify a particular certificate for the run, certonly," - " certificates, renew, and delete commands. To get a list of all" - "certificates that Certbot knows about run 'certbot certificates'") helpful.add( ["automation", "certonly", "run"], "--keep-until-expiring", "--keep", "--reinstall",