From 833d3b814731e33cbc01b365a7aab8baadf2d397 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Mon, 21 Jul 2025 16:26:53 +0200 Subject: [PATCH] fix: wrong CLI flag type (#2595) --- cmd/flags.go | 2 +- docs/data/zz_cli_help.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/flags.go b/cmd/flags.go index 066517229..4ceccbdd9 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -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.", diff --git a/docs/data/zz_cli_help.toml b/docs/data/zz_cli_help.toml index 0ba9b9d8a..95ff0770a 100644 --- a/docs/data/zz_cli_help.toml +++ b/docs/data/zz_cli_help.toml @@ -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]