fix: wrong CLI flag type (#2595)

This commit is contained in:
Ludovic Fernandez 2025-07-21 16:26:53 +02:00 committed by GitHub
commit 833d3b8147
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ func CreateFlags(defaultPath string) []cli.Flag {
EnvVars: []string{envEmail},
Usage: "Email used for registration and recovery contact.",
},
&cli.StringFlag{
&cli.BoolFlag{
Name: flgDisableCommonName,
EnvVars: []string{flgDisableCommonName},
Usage: "Disable the use of the common name in the CSR.",

View file

@ -23,7 +23,7 @@ GLOBAL OPTIONS:
--server value, -s value CA hostname (and optionally :port). The server certificate must be trusted in order to avoid further modifications to the client. (default: "https://acme-v02.api.letsencrypt.org/directory") [$LEGO_SERVER]
--accept-tos, -a By setting this flag to true you indicate that you accept the current Let's Encrypt terms of service. (default: false)
--email value, -m value Email used for registration and recovery contact. [$LEGO_EMAIL]
--disable-cn value Disable the use of the common name in the CSR. [$disable-cn]
--disable-cn Disable the use of the common name in the CSR. (default: false) [$disable-cn]
--csr value, -c value Certificate signing request filename, if an external CSR is to be used.
--eab Use External Account Binding for account registration. Requires --kid and --hmac. (default: false) [$LEGO_EAB]
--kid value Key identifier from External CA. Used for External Account Binding. [$LEGO_EAB_KID]