From c2847f6a9f886473bf7a2b5bb4742fcee4e8cc7a Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 16 Dec 2018 22:17:39 +0100 Subject: [PATCH] Short options for line-range and highlight-line --- src/clap_app.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/clap_app.rs b/src/clap_app.rs index 9f6f0997..e9f9d3a0 100644 --- a/src/clap_app.rs +++ b/src/clap_app.rs @@ -175,6 +175,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> { .arg( Arg::with_name("line-range") .long("line-range") + .short("r") .multiple(true) .takes_value(true) .number_of_values(1) @@ -191,6 +192,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> { .arg( Arg::with_name("highlight-line") .long("highlight-line") + .short("H") .takes_value(true) .multiple(true) .value_name("N")