mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-10-31 19:41:45 +00:00
group commands logically, rearrange option forms in _process()
Commands have been reordered in showhelp() to a more consistent grouping, help > version > install > certs > csr > account > cron > other All option alternatives in _process() case statement have been reordered toshow the canonical variants first, legacy variants after.
This commit is contained in:
parent
d81369d63a
commit
7decf76883
58
acme.sh
58
acme.sh
@ -6408,7 +6408,6 @@ Commands:
|
|||||||
--uninstall Uninstall $PROJECT_NAME, and uninstall the cron job.
|
--uninstall Uninstall $PROJECT_NAME, and uninstall the cron job.
|
||||||
--upgrade Upgrade $PROJECT_NAME to the latest code from $PROJECT.
|
--upgrade Upgrade $PROJECT_NAME to the latest code from $PROJECT.
|
||||||
--issue Issue a cert.
|
--issue Issue a cert.
|
||||||
--signcsr Issue a cert from an existing csr.
|
|
||||||
--deploy Deploy the cert to your server.
|
--deploy Deploy the cert to your server.
|
||||||
-i, --install-cert Install the issued cert to apache/nginx or any other server.
|
-i, --install-cert Install the issued cert to apache/nginx or any other server.
|
||||||
-r, --renew Renew a cert.
|
-r, --renew Renew a cert.
|
||||||
@ -6416,20 +6415,21 @@ Commands:
|
|||||||
--revoke Revoke a cert.
|
--revoke Revoke a cert.
|
||||||
--remove Remove the cert from list of certs known to $PROJECT_NAME.
|
--remove Remove the cert from list of certs known to $PROJECT_NAME.
|
||||||
--list List all the certs.
|
--list List all the certs.
|
||||||
--show-csr Show the content of a csr.
|
|
||||||
--install-cronjob Install the cron job to renew certs, you don't need to call this. The 'install' command can automatically install the cron job.
|
|
||||||
--uninstall-cronjob Uninstall the cron job. The 'uninstall' command can do this automatically.
|
|
||||||
--cron Run cron job to renew all the certs.
|
|
||||||
--to-pkcs Export the certificate and key to a pfx file.
|
--to-pkcs Export the certificate and key to a pfx file.
|
||||||
--to-pkcs8 Convert to pkcs8 format.
|
--to-pkcs8 Convert to pkcs8 format.
|
||||||
|
--sign-csr Issue a cert from an existing csr.
|
||||||
|
--show-csr Show the content of a csr.
|
||||||
|
-ccr, --create-csr Create CSR, professional use.
|
||||||
|
--create-domain-key Create an domain private key, professional use.
|
||||||
--update-account Update account info.
|
--update-account Update account info.
|
||||||
--register-account Register account key.
|
--register-account Register account key.
|
||||||
--deactivate-account Deactivate the account.
|
--deactivate-account Deactivate the account.
|
||||||
--create-account-key Create an account private key, professional use.
|
--create-account-key Create an account private key, professional use.
|
||||||
--create-domain-key Create an domain private key, professional use.
|
--install-cronjob Install the cron job to renew certs, you don't need to call this. The 'install' command can automatically install the cron job.
|
||||||
-ccr, --create-csr Create CSR, professional use.
|
--uninstall-cronjob Uninstall the cron job. The 'uninstall' command can do this automatically.
|
||||||
--deactivate Deactivate the domain authz, professional use.
|
--cron Run cron job to renew all the certs.
|
||||||
--set-notify Set the cron notification hook, level or mode.
|
--set-notify Set the cron notification hook, level or mode.
|
||||||
|
--deactivate Deactivate the domain authz, professional use.
|
||||||
--set-default-ca Used with '--server', to set the default CA to use to use.
|
--set-default-ca Used with '--server', to set the default CA to use to use.
|
||||||
|
|
||||||
|
|
||||||
@ -6784,19 +6784,19 @@ _process() {
|
|||||||
--deploy)
|
--deploy)
|
||||||
_CMD="deploy"
|
_CMD="deploy"
|
||||||
;;
|
;;
|
||||||
--signcsr)
|
--sign-csr | --signcsr)
|
||||||
_CMD="signcsr"
|
_CMD="signcsr"
|
||||||
;;
|
;;
|
||||||
--showcsr)
|
--show-csr | --showcsr)
|
||||||
_CMD="showcsr"
|
_CMD="showcsr"
|
||||||
;;
|
;;
|
||||||
--installcert | -i | --install-cert)
|
-i | --install-cert | --installcert)
|
||||||
_CMD="installcert"
|
_CMD="installcert"
|
||||||
;;
|
;;
|
||||||
--renew | -r)
|
--renew | -r)
|
||||||
_CMD="renew"
|
_CMD="renew"
|
||||||
;;
|
;;
|
||||||
--renewAll | --renewall | --renew-all)
|
--renew-all | --renewAll | --renewall)
|
||||||
_CMD="renewAll"
|
_CMD="renewAll"
|
||||||
;;
|
;;
|
||||||
--revoke)
|
--revoke)
|
||||||
@ -6808,37 +6808,37 @@ _process() {
|
|||||||
--list)
|
--list)
|
||||||
_CMD="list"
|
_CMD="list"
|
||||||
;;
|
;;
|
||||||
--installcronjob | --install-cronjob)
|
--install-cronjob | --installcronjob)
|
||||||
_CMD="installcronjob"
|
_CMD="installcronjob"
|
||||||
;;
|
;;
|
||||||
--uninstallcronjob | --uninstall-cronjob)
|
--uninstall-cronjob | --uninstallcronjob)
|
||||||
_CMD="uninstallcronjob"
|
_CMD="uninstallcronjob"
|
||||||
;;
|
;;
|
||||||
--cron)
|
--cron)
|
||||||
_CMD="cron"
|
_CMD="cron"
|
||||||
;;
|
;;
|
||||||
--toPkcs | --to-pkcs)
|
--to-pkcs | --toPkcs)
|
||||||
_CMD="toPkcs"
|
_CMD="toPkcs"
|
||||||
;;
|
;;
|
||||||
--toPkcs8 | --to-pkcs8)
|
--to-pkcs8 | --toPkcs8)
|
||||||
_CMD="toPkcs8"
|
_CMD="toPkcs8"
|
||||||
;;
|
;;
|
||||||
--createAccountKey | --createaccountkey | -cak | --create-account-key)
|
--create-account-key | --createAccountKey | --createaccountkey | -cak)
|
||||||
_CMD="createAccountKey"
|
_CMD="createAccountKey"
|
||||||
;;
|
;;
|
||||||
--createDomainKey | --createdomainkey | -cdk | --create-domain-key)
|
--create-domain-key | --createDomainKey | --createdomainkey | -cdk)
|
||||||
_CMD="createDomainKey"
|
_CMD="createDomainKey"
|
||||||
;;
|
;;
|
||||||
--createCSR | --createcsr | -ccr | --create-csr)
|
-ccr | --create-csr | --createCSR | --createcsr)
|
||||||
_CMD="createCSR"
|
_CMD="createCSR"
|
||||||
;;
|
;;
|
||||||
--deactivate)
|
--deactivate)
|
||||||
_CMD="deactivate"
|
_CMD="deactivate"
|
||||||
;;
|
;;
|
||||||
--updateaccount | --update-account)
|
--update-account | --updateaccount)
|
||||||
_CMD="updateaccount"
|
_CMD="updateaccount"
|
||||||
;;
|
;;
|
||||||
--registeraccount | --register-account)
|
--register-account | --registeraccount)
|
||||||
_CMD="registeraccount"
|
_CMD="registeraccount"
|
||||||
;;
|
;;
|
||||||
--deactivate-account)
|
--deactivate-account)
|
||||||
@ -6850,7 +6850,7 @@ _process() {
|
|||||||
--set-default-ca)
|
--set-default-ca)
|
||||||
_CMD="setdefaultca"
|
_CMD="setdefaultca"
|
||||||
;;
|
;;
|
||||||
--domain | -d)
|
-d | --domain)
|
||||||
_dvalue="$2"
|
_dvalue="$2"
|
||||||
|
|
||||||
if [ "$_dvalue" ]; then
|
if [ "$_dvalue" ]; then
|
||||||
@ -6881,7 +6881,7 @@ _process() {
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--force | -f)
|
-f | --force)
|
||||||
FORCE="1"
|
FORCE="1"
|
||||||
;;
|
;;
|
||||||
--staging | --test)
|
--staging | --test)
|
||||||
@ -6903,7 +6903,7 @@ _process() {
|
|||||||
--output-insecure)
|
--output-insecure)
|
||||||
export OUTPUT_INSECURE=1
|
export OUTPUT_INSECURE=1
|
||||||
;;
|
;;
|
||||||
--webroot | -w)
|
-w | --webroot)
|
||||||
wvalue="$2"
|
wvalue="$2"
|
||||||
if [ -z "$_webroot" ]; then
|
if [ -z "$_webroot" ]; then
|
||||||
_webroot="$wvalue"
|
_webroot="$wvalue"
|
||||||
@ -6993,7 +6993,7 @@ _process() {
|
|||||||
_keylength="$2"
|
_keylength="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--accountkeylength | -ak)
|
-ak | --accountkeylength)
|
||||||
_accountkeylength="$2"
|
_accountkeylength="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
@ -7031,7 +7031,7 @@ _process() {
|
|||||||
LE_WORKING_DIR="$2"
|
LE_WORKING_DIR="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--certhome | --cert-home)
|
--cert-home | --certhome)
|
||||||
_certhome="$2"
|
_certhome="$2"
|
||||||
CERT_HOME="$_certhome"
|
CERT_HOME="$_certhome"
|
||||||
shift
|
shift
|
||||||
@ -7046,7 +7046,7 @@ _process() {
|
|||||||
USER_AGENT="$_useragent"
|
USER_AGENT="$_useragent"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--accountemail | -m)
|
-m | --accountemail)
|
||||||
_accountemail="$2"
|
_accountemail="$2"
|
||||||
ACCOUNT_EMAIL="$_accountemail"
|
ACCOUNT_EMAIL="$_accountemail"
|
||||||
shift
|
shift
|
||||||
@ -7074,7 +7074,7 @@ _process() {
|
|||||||
--listraw)
|
--listraw)
|
||||||
_listraw="raw"
|
_listraw="raw"
|
||||||
;;
|
;;
|
||||||
--stopRenewOnError | --stoprenewonerror | -se | --stop-renew-on-error)
|
-se | --stop-renew-on-error | --stopRenewOnError | --stoprenewonerror)
|
||||||
_stopRenewOnError="1"
|
_stopRenewOnError="1"
|
||||||
;;
|
;;
|
||||||
--insecure)
|
--insecure)
|
||||||
@ -7097,7 +7097,7 @@ _process() {
|
|||||||
--noprofile)
|
--noprofile)
|
||||||
_noprofile="1"
|
_noprofile="1"
|
||||||
;;
|
;;
|
||||||
--no-color)
|
--nocolor | --no-color)
|
||||||
export ACME_NO_COLOR=1
|
export ACME_NO_COLOR=1
|
||||||
;;
|
;;
|
||||||
--force-color)
|
--force-color)
|
||||||
|
Loading…
Reference in New Issue
Block a user