This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 6d34eb01 Report bad options
6d34eb01 is described below

commit 6d34eb01c161de8273788c80c6eb00aa32816560
Author: Sebb <s...@apache.org>
AuthorDate: Wed May 8 12:32:02 2024 +0100

    Report bad options
---
 tools/site-scan.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 70494439..44582153 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -339,6 +339,11 @@ $verbose = ARGV.delete '--verbose'
 $saveparse = ARGV.delete '--saveparse'
 $skipresourcecheck = ARGV.delete '--noresource'
 
+k = ARGV.select {|k| k.start_with? '-'}
+if k.size > 0
+  raise "Unexpected options: #{k} (valid: verbose, saveparse, noresource)"
+end
+
 puts "Started: #{Time.now}"  # must agree with site-scan monitor
 
 # USAGE:

Reply via email to