Skip to content

Commit

Permalink
cli_util: Remove unnecessary value_name attribute to no_pager flag
Browse files Browse the repository at this point in the history
The value_name is not necessary for boolean flags.
  • Loading branch information
Grillo-0 committed Oct 12, 2024
1 parent f166fd0 commit 4a7295e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/cli_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 4a7295e

Please sign in to comment.