Francois Gouget : testbot/TestAgent: Better report invalid options.
Alexandre Julliard
julliard at winehq.org
Wed Oct 25 02:52:20 CDT 2017
Module: tools
Branch: master
Commit: 252359b01c26d2f4f164ef26e0c590afb3e9c209
URL: http://source.winehq.org/git/tools.git/?a=commit;h=252359b01c26d2f4f164ef26e0c590afb3e9c209
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Oct 24 15:49:05 2017 +0200
testbot/TestAgent: Better report invalid options.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list