From 76c615a30416c4a0bea07fc7df4f5f1e88ddf6e0 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Wed, 24 Jul 2019 21:44:22 +0200 Subject: [PATCH] Allow leading minus in '--terminal-width ' closes #611 --- src/clap_app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/clap_app.rs b/src/clap_app.rs index 1e81618e..21fb0493 100644 --- a/src/clap_app.rs +++ b/src/clap_app.rs @@ -332,6 +332,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> { .takes_value(true) .value_name("width") .hidden_short_help(true) + .allow_hyphen_values(true) .validator( |t| { let is_offset = t.starts_with('+') || t.starts_with('-');