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: Add verbose option
Date Thu, 27 Apr 2017 10:47:31 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  fd02fb6   Add verbose option
fd02fb6 is described below

commit fd02fb69385c87946fc92430daad77987fbe204f
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Apr 27 11:47:30 2017 +0100

    Add verbose option
---
 tools/site-scan.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 171e021..beb2518 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -64,6 +64,7 @@ def parse(site, name)
     end
 
     a_text = a.text.downcase.strip
+    $stderr.puts a_text if $verbose
 
     if a_text =~ /licenses?/ and a['href'].include? 'apache.org'
       data[:license] = uri + a['href'].strip 
@@ -84,6 +85,8 @@ def parse(site, name)
   return data
 end
 
+$verbose = ARGV.delete '--verbose'
+
 results = {}
 
 # Parse a single site given its URL

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message