Hide --squeeze-limit from short help

This commit is contained in:
einfachIrgendwer0815 2024-02-24 13:57:44 +01:00
parent 1fbdbfc4b2
commit f041ff8c5f
No known key found for this signature in database
GPG Key ID: 58D55E5F117DA873
2 changed files with 1 additions and 3 deletions

View File

@ -45,8 +45,6 @@ Options:
Display all supported highlighting themes.
-s, --squeeze
Squeeze consecutive empty lines.
--squeeze-limit <squeeze-limit>
The maximum number of consecutive empty lines.
--style <components>
Comma-separated list of style elements to display (*default*, auto, full, plain, changes,
header, header-filename, header-filesize, grid, rule, numbers, snip).

View File

@ -399,8 +399,8 @@ pub fn build_app(interactive_output: bool) -> Command {
Arg::new("squeeze-limit")
.long("squeeze-limit")
.value_parser(|s: &str| s.parse::<usize>().map_err(|_| "Requires a non-negative number".to_owned()))
.help("The maximum number of consecutive empty lines.")
.long_help("Set the maximum number of consecutive empty lines to be printed.")
.hide_short_help(true)
)
.arg(
Arg::new("style")