diff --git a/src/main.rs b/src/main.rs index 7344049..bd3c77a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,12 +33,11 @@ fn run(commands: &[Command<'_>], options: &HyperfineOptions) -> io::Result 1 { + if preparation_command.len() > 1 && commands.len() != preparation_command.len() { error( - "--prepare option should be provided only 1 time or N times equal to number of \ - commands to benchmark", + "The '--prepare' option has to be provided just once or N times, where N is the \ + number of benchmark commands.", ); } }