[Tools] testbot/TestAgent: Better report invalid options.

Francois Gouget <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <E1e6zZp-0000Dd-QM@amboise>
Signed-off-by: Francois Gouget <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.