mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Allow for multiple highlighted lines
This commit is contained in:
1 parent
a236a9b195
commit
6b92814ea0
3 files changed
+35
-20
No files matched your search
+3
-3
@@ -191,12 +191,12 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
||||
.arg(
|
||||
Arg::with_name("highlight-line")
|
||||
.long("highlight-line")
|
||||
.overrides_with("highlight-line")
|
||||
.takes_value(true)
|
||||
.multiple(true)
|
||||
.value_name("N")
|
||||
.help("Highlight a line.")
|
||||
.help("Highlight the given line.")
|
||||
.long_help(
|
||||
"Highlight the Nth line. The background color is changed to create contrast.",
|
||||
"Highlight the N-th line with a different background color",
|
||||
),
|
||||
)
|
||||
.arg(
|
||||
|
||||
Reference in new issue
Block a user