Skip to content
Myr

Fix usage of --input=null

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent fbe9ca6 · Browse files · 2 files+17 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+17 added−6 removed

  • other:+17 added−6 removed

2 files+17 added−6 removed

modified:src/options.rs+10 added-6 removed
377 unmodified lines
378 .map_err(|e| OptionsError::FloatParsingError("min-benchmarking-time", e))?;379 }380381 options.command_input_policy = if let Some(path_str) = matches.get_one::<String>("input") {382 if path_str == "null" {383 CommandInputPolicy::Null384 } else {382 let path = PathBuf::from(path_str);383 if !path.exists() {384 return Err(OptionsError::StdinDataFileDoesNotExist(385 path_str.to_string(),386 ));385 let path = PathBuf::from(path_str);386 if !path.exists() {387 return Err(OptionsError::StdinDataFileDoesNotExist(388 path_str.to_string(),389 ));390 }391 CommandInputPolicy::File(path)392 }388 CommandInputPolicy::File(path)393 } else {394 CommandInputPolicy::Null395 };396
60 unmodified lines
modified:CHANGELOG.md+7 added
13 unmodified lines
1415## Other161718# v1.16.11920## Bugfixes2122- Fix line-wrapping of `--help` text (@sharkdp)23- Fix `--input=null` (@sharkdp)242526# v1.16.02728## Features29
339 unmodified lines