mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-21 23:33:26 +01:00
Using hypens instead of underscores for set-terminal-title command
This commit is contained in:
parent
a8d07333e9
commit
7ce010d9ed
@ -160,7 +160,7 @@ Options:
|
|||||||
--acknowledgements
|
--acknowledgements
|
||||||
Show acknowledgements.
|
Show acknowledgements.
|
||||||
|
|
||||||
--set_terminal_title
|
--set-terminal-title
|
||||||
Sets terminal title to filenames when using a pager.
|
Sets terminal title to filenames when using a pager.
|
||||||
|
|
||||||
-h, --help
|
-h, --help
|
||||||
|
@ -287,7 +287,7 @@ impl App {
|
|||||||
use_custom_assets: !self.matches.get_flag("no-custom-assets"),
|
use_custom_assets: !self.matches.get_flag("no-custom-assets"),
|
||||||
#[cfg(feature = "lessopen")]
|
#[cfg(feature = "lessopen")]
|
||||||
use_lessopen: self.matches.get_flag("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."),
|
.help("Show acknowledgements."),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("set_terminal_title")
|
Arg::new("set-terminal-title")
|
||||||
.long("set_terminal_title")
|
.long("set-terminal-title")
|
||||||
.action(ArgAction::SetTrue)
|
.action(ArgAction::SetTrue)
|
||||||
.hide_short_help(true)
|
.hide_short_help(true)
|
||||||
.help("Sets terminal title to filenames when using a pager."),
|
.help("Sets terminal title to filenames when using a pager."),
|
||||||
|
@ -927,7 +927,7 @@ fn pager_set_terminal_title() {
|
|||||||
bat()
|
bat()
|
||||||
.env("PAGER", mocked_pagers::from("echo pager-output"))
|
.env("PAGER", mocked_pagers::from("echo pager-output"))
|
||||||
.arg("--paging=always")
|
.arg("--paging=always")
|
||||||
.arg("--set_terminal_title")
|
.arg("--set-terminal-title")
|
||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
|
Loading…
Reference in New Issue
Block a user