Francois Gouget : testbot/TestAgent: Better report invalid options.
Module: tools Branch: master Commit: 252359b01c26d2f4f164ef26e0c590afb3e9c209 URL: http://source.winehq.org/git/tools.git/?a=commit;h=252359b01c26d2f4f164ef26e... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Tue Oct 24 15:49:05 2017 +0200 testbot/TestAgent: Better report invalid options. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/scripts/TestAgent | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testbot/scripts/TestAgent b/testbot/scripts/TestAgent index bfc4fbc..c410556 100755 --- a/testbot/scripts/TestAgent +++ b/testbot/scripts/TestAgent @@ -152,6 +152,11 @@ while (@ARGV) { $RunFlags |= $TestAgent::RUN_DNTRUNC_ERR; } + elsif ($arg =~ /^-/) + { + error("unknown option '$arg'\n"); + $Usage = 2; + } elsif (!defined $Hostname) { $Hostname = $arg;
participants (1)
-
Alexandre Julliard