mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-02 03:12:25 +01:00
Using hypens instead of underscores for set-terminal-title command
This commit is contained in:
@@ -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"),
|
||||
})
|
||||
}
|
||||
|
||||
|
@@ -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."),
|
||||
|
Reference in New Issue
Block a user