summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOliver looney <oliverjlooney@gmail.com>2024-02-08 21:33:03 +0000
committerOliver looney <oliverjlooney@gmail.com>2024-02-08 21:33:03 +0000
commit7ce010d9edf6d82f7013af2c711308f38fc680d6 (patch)
treed590f7d41018556ddbd0deb093a53eaf425a87b6 /src
parenta8d07333e9391c75406e9ac2d03d80f70d32e8fb (diff)
Using hypens instead of underscores for set-terminal-title command
Diffstat (limited to 'src')
-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 ef22e93d..8ec3caa5 100644
--- a/src/bin/bat/app.rs
+++ b/src/bin/bat/app.rs
@@ -287,7 +287,7 @@ impl App {
use_custom_assets: !self.matches.get_flag("no-custom-assets"),
#[cfg(feature = "lessopen")]
use_lessopen: self.matches.get_flag("lessopen"),
- set_terminal_title: self.matches.get_flag("set_terminal_title"),
+ set_terminal_title: self.matches.get_flag("set-terminal-title"),
})
}
diff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs
index 3f83bf63..6ceed784 100644
--- a/src/bin/bat/clap_app.rs
+++ b/src/bin/bat/clap_app.rs
@@ -569,8 +569,8 @@ pub fn build_app(interactive_output: bool) -> Command {
.help("Show acknowledgements."),
)
.arg(
- Arg::new("set_terminal_title")
- .long("set_terminal_title")
+ Arg::new("set-terminal-title")
+ .long("set-terminal-title")
.action(ArgAction::SetTrue)
.hide_short_help(true)
.help("Sets terminal title to filenames when using a pager."),