Allow leading minus in '--terminal-width <value>'

closes #611
This commit is contained in:
sharkdp 2019-07-24 21:44:22 +02:00
parent e8c04672f0
commit 76c615a304
1 changed files with 1 additions and 0 deletions

View File

@ -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('-');