summaryrefslogtreecommitdiffstats
path: root/src/bin/bat/clap_app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/bat/clap_app.rs')
-rw-r--r--src/bin/bat/clap_app.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs
index 4bcee8d6..0c28ce7d 100644
--- a/src/bin/bat/clap_app.rs
+++ b/src/bin/bat/clap_app.rs
@@ -396,6 +396,13 @@ pub fn build_app(interactive_output: bool) -> Command {
.long_help("Squeeze consecutive empty lines into a single empty line.")
)
.arg(
+ 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.")
+ )
+ .arg(
Arg::new("style")
.long("style")
.value_name("components")