From 8794c4fd4104544a355ed0254d01a57f4f439fda Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Tue, 3 Jan 2017 13:49:59 -0800 Subject: [PATCH] Document some particularities of the revoke subcommand (#3923) * Document some particularities of the revoke subcommand * Add --test-cert to "run" help topic --- certbot/cli.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/certbot/cli.py b/certbot/cli.py index d0964e4a2..6c513b4a1 100644 --- a/certbot/cli.py +++ b/certbot/cli.py @@ -361,7 +361,8 @@ VERB_HELP = [ }), ("revoke", { "short": "Revoke a certificate specified with --cert-path", - "opts": "Options for revocation of certs" + "opts": "Options for revocation of certs", + "usage": "\n\n certbot revoke --cert-path /path/to/fullchain.pem [options]\n\n" }), ("rename", { "short": "Change a certificate's name (for management purposes)", @@ -934,8 +935,9 @@ def prepare_and_parse_args(plugins, args, detect_defaults=False): # pylint: dis help="Silence all output except errors. Useful for automation via cron." " Implies --non-interactive.") # overwrites server, handled in HelpfulArgumentParser.parse_args() - helpful.add("testing", "--test-cert", "--staging", action='store_true', dest='staging', - help='Use the staging server to obtain test (invalid) certs; equivalent' + helpful.add(["testing", "revoke", "run"], "--test-cert", "--staging", + action='store_true', dest='staging', + help='Use the staging server to obtain or revoke test (invalid) certs; equivalent' ' to --server ' + constants.STAGING_URI) helpful.add( "testing", "--debug", action="store_true",