From 4a7295eead42ef73923b66900f379ffc3f55eade Mon Sep 17 00:00:00 2001 From: Arthur Grillo Date: Sat, 21 Sep 2024 01:42:50 -0300 Subject: [PATCH] cli_util: Remove unnecessary value_name attribute to no_pager flag The value_name is not necessary for boolean flags. --- cli/src/cli_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index 011b65579..02febc5af 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -2843,7 +2843,7 @@ pub struct EarlyArgs { // Option. pub quiet: Option, /// Disable the pager - #[arg(long, value_name = "WHEN", global = true, action = ArgAction::SetTrue)] + #[arg(long, global = true, action = ArgAction::SetTrue)] // Parsing with ignore_errors will crash if this is bool, so use // Option. pub no_pager: Option,