Skip to content
Myr

Update warning text

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 851e9b8 · Browse files · 2 files+5 added−2 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+5 added−2 removed

  • other:+5 added−2 removed

2 files+5 added−2 removed

modified:src/output/warnings.rs+4 added-1 removed
15 unmodified lines
16 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {17 match *self {18 Warnings::FastExecutionTime => write!(19 f,20 "Command took less than {:.0} ms to complete. Results might be inaccurate.",20 "Command took less than {:.0} ms to complete. Note that the results might be \21 inaccurate because hyperfine can not calibrate the shell startup time much \22 more precise than this limit. You can try to use the `-N`/`--shell=none` \23 option to disable the shell completely.",24 MIN_EXECUTION_TIME * 1e325 ),26 Warnings::NonZeroExitCode => write!(f, "Ignoring non-zero exit code."),27 Warnings::SlowInitialRun(t_first) => write!(
17 unmodified lines
modified:src/cli.rs+1 added-1 removed
184 unmodified lines
185 .overrides_with("shell")186 .help("Set the shell to use for executing benchmarked commands. This can be the \187 name or the path to the shell executable, or a full command line \188 like \"bash --norc\". It can also be set to \"default\" to explicitly select \189 the default shell on this patform. Finally, this can also be set to \189 the default shell on this platform. Finally, this can also be set to \190 \"none\" to disable the shell. In this case, commands will be executed \191 directly. They can still have arguments, but more complex things like \192 \"sleep 0.1; sleep 0.2\" are not possible without a shell.")193 )
84 unmodified lines