1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-08 19:41:45 +00:00

add line highlight

This commit is contained in:
Taylor
2018-10-09 22:25:33 -06:00
parent 5842d58c01
commit 1a6709c2cb
4 changed files with 38 additions and 2 deletions
+11
View File
@@ -141,6 +141,17 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
'--line-range 40:' prints lines 40 to the end of the file",
),
)
.arg(
Arg::with_name("highlight-line")
.long("highlight-line")
.overrides_with("highlight-line")
.takes_value(true)
.value_name("n")
.help("Highlight a line.")
.long_help(
"Highlight the nth line. The background color is changed to create contrast.",
),
)
.arg(
Arg::with_name("color")
.long("color")