[Tools] testbot/TestAgent: Better report invalid options.
Francois Gouget
fgouget at codeweavers.com
Tue Oct 24 08:49:05 CDT 2017
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/scripts/TestAgent | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/testbot/scripts/TestAgent b/testbot/scripts/TestAgent
index bfc4fbc7..c4105561 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;
--
2.14.2
More information about the wine-patches
mailing list