cli_util: Remove unnecessary value_name attribute to no_pager flag

The value_name is not necessary for boolean flags.
This commit is contained in:
Arthur Grillo 2024-09-21 01:42:50 -03:00 committed by Arthur Grillo
parent f166fd0726
commit 4a7295eead

View file

@ -2843,7 +2843,7 @@ pub struct EarlyArgs {
// Option<bool>.
pub quiet: Option<bool>,
/// 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<bool>.
pub no_pager: Option<bool>,