You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/06/05 10:12:56 UTC

[whimsy] branch master updated: Show options on error

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 <se...@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