From 33591d14330137fd211af1b4b7865428dc09f595 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 13 Oct 2019 14:46:00 +0200 Subject: [PATCH] Update error message --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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.", ); } }