diff options
author | einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com> | 2024-02-24 14:02:27 +0100 |
---|---|---|
committer | einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com> | 2024-02-24 14:02:27 +0100 |
commit | 83b00bc653130cfbcc75b4a3bbfb2ffe6af85d8e (patch) | |
tree | 890bca843b496cdaabd67f77ae1f172522f8058b /src | |
parent | f041ff8c5f986e9e83a85615df86cbaf90ac79e0 (diff) |
Rename `--squeeze` to `--squeeze-blank`
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/bat/app.rs | 2 | ||||
-rw-r--r-- | src/bin/bat/clap_app.rs | 4 |
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.") |