mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 10:16:52 +02:00
--key-path is mandatory for install, optional for revoke
This commit is contained in:
+1
-2
@@ -530,7 +530,6 @@ class HelpfulArgumentParser(object):
|
||||
Currently: add the default verb "run" as a default, and ensure that the
|
||||
subcommand / verb comes last.
|
||||
"""
|
||||
|
||||
if "-h" in args or "--help" in args:
|
||||
# all verbs double as help arguments; don't get them confused
|
||||
return args
|
||||
@@ -779,7 +778,7 @@ def _paths_parser(helpful):
|
||||
help="Path to where certificate is saved (with auth), "
|
||||
"installed (with install --csr) or revoked.")
|
||||
helpful.add("paths",
|
||||
"--key-path", required=True,
|
||||
"--key-path", required=("install" in helpful.args),
|
||||
help="Path to private key for cert creation or revocation (if account key is missing)")
|
||||
helpful.add("paths",
|
||||
"--chain-path", help="Accompanying path to a certificate chain.")
|
||||
|
||||
Reference in New Issue
Block a user