link-checker commit: Fix "Excluding links" info message in command line mode.

changeset:   271:0bf82aee3c91
user:        ville
date:        Fri Jan 30 19:58:17 2009 +0000
files:       bin/checklink
description:
Fix "Excluding links" info message in command line mode.


diff -r 0b2d23ae16d7 -r 0bf82aee3c91 bin/checklink
--- a/bin/checklink	Fri Jan 30 19:57:10 2009 +0000
+++ b/bin/checklink	Fri Jan 30 19:58:17 2009 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2009 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.136 2009-01-30 19:57:10 ville Exp $
+# $Id: checklink,v 4.137 2009-01-30 19:58:17 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -267,7 +267,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.4';
   $REVISION    = sprintf('version %s (c) 1999-2009 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.136 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.137 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver,
                          (W3C::UserAgent::USE_ROBOT_UA
@@ -899,7 +899,7 @@
     printf("- Excluding links matching %s\n", $Opts{Exclude})
       if defined($Opts{Exclude});
     printf("- Excluding links in documents whose URIs match %s\n",
-      $Opts{Exclude_Docs}) if defined($Opts{Exclude_Docs});
+      join(', ', @{$Opts{Exclude_Docs}})) if @{$Opts{Exclude_Docs}};
   }
 
   if ($Opts{HTML}) {

Received on Thursday, 5 August 2010 14:47:35 UTC