Reject negative parameter steps before expanding ranges

This commit is contained in:
Eric Soler committed 2026-10-03 16:23:02 +00:00
1 parent 0f7ae35626
commit 31ae72b2b7
5 files changed
+54 -2

No files matched your search

+1 -1
View File
@@ -182,7 +182,7 @@ fn build_command() -> Command {
.requires("parameter-scan")
.help(
"This argument requires --parameter-scan to be specified as well. \
Traverse the range MIN..MAX in steps of DELTA.\n\n \
Traverse the range MIN..MAX in steps of DELTA, which must be positive.\n\n \
Example: hyperfine -P delay 0.3 0.7 -D 0.2 'sleep {delay}'\n\n\
This performs benchmarks for 'sleep 0.3', 'sleep 0.5' and 'sleep 0.7'.",
),