summaryrefslogtreecommitdiffstats
path: root/src/bin/bat
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/bat')
-rw-r--r--src/bin/bat/app.rs2
-rw-r--r--src/bin/bat/clap_app.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/bat/app.rs b/src/bin/bat/app.rs
index f462ce8d..c382975e 100644
--- a/src/bin/bat/app.rs
+++ b/src/bin/bat/app.rs
@@ -290,7 +290,7 @@ impl App {
#[cfg(feature = "lessopen")]
use_lessopen: self.matches.get_flag("lessopen"),
set_terminal_title: self.matches.get_flag("set-terminal-title"),
- squeeze_lines: if self.matches.get_flag("squeeze") {
+ squeeze_lines: if self.matches.get_flag("squeeze-blank") {
Some(
self.matches
.get_one::<usize>("squeeze-limit")
diff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs
index cfb9d054..ac7f5c18 100644
--- a/src/bin/bat/clap_app.rs
+++ b/src/bin/bat/clap_app.rs
@@ -388,8 +388,8 @@ pub fn build_app(interactive_output: bool) -> Command {
.long_help("Display a list of supported themes for syntax highlighting."),
)
.arg(
- Arg::new("squeeze")
- .long("squeeze")
+ Arg::new("squeeze-blank")
+ .long("squeeze-blank")
.short('s')
.action(ArgAction::SetTrue)
.help("Squeeze consecutive empty lines.")