Allow for multiple line ranges

See #23
This commit is contained in:
sharkdp authored and David Peter committed 2018-10-20 10:44:13 +02:00
1 parent 7082fd09f0
commit 496e0bc046
5 files changed
+142 -21

No files matched your search

+2 -1
View File
@@ -146,8 +146,9 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
.arg(
Arg::with_name("line-range")
.long("line-range")
.overrides_with("line-range")
.multiple(true)
.takes_value(true)
.number_of_values(1)
.value_name("N:M")
.help("Only print the lines from N to M.")
.long_help(