whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Show options on error
Date Sat, 05 Jun 2021 10:12:56 GMT
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 c69460e  Show options on error
c69460e is described below

commit c69460ebfd1a0afa48e51cef35b20d102bd5a4a1
Author: Sebb <sebb@apache.org>
AuthorDate: Sat Jun 5 11:12:46 2021 +0100

    Show options on error
---
 tools/download_check.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index ed392b0..6be8581 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -743,7 +743,9 @@ if __FILE__ == $0
 
   # check for any unhandled options
   ARGV.each do |arg|
-    raise ArgumentError.new("Invalid option #{arg}") if arg.start_with? '--'
+    if arg.start_with? '--'
+      raise ArgumentError.new("Invalid option #{arg}; expecting always|nolinks|archivecheck|http|ff|show-links")
+    end
   end
 
   init

Mime
View raw message