mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Reject negative parameter steps before expanding ranges
This commit is contained in:
1 parent
0f7ae35626
commit
31ae72b2b7
5 files changed
+54
-2
No files matched your search
@@ -19,6 +19,8 @@ pub enum ParameterScanError {
|
||||
TooLarge,
|
||||
#[error("Zero is not a valid parameter step")]
|
||||
ZeroStep,
|
||||
#[error("Parameter step size must be positive")]
|
||||
NegativeStep,
|
||||
#[error("A step size is required when the range bounds are floating point numbers. The step size can be specified with the '-D/--parameter-step-size <DELTA>' parameter")]
|
||||
StepRequired,
|
||||
#[error("'--command-name' has been specified {0} times. It has to appear exactly once, or exactly {1} times (number of benchmarks)")]
|
||||
|
||||
Reference in new issue
Block a user