/[Apache-SVN]/spamassassin/trunk/sa-learn.raw
ViewVC logotype

Diff of /spamassassin/trunk/sa-learn.raw

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- spamassassin/trunk/sa-learn.raw	2004/12/03 00:29:06	109602
+++ spamassassin/trunk/sa-learn.raw	2004/12/03 00:33:28	109603
@@ -147,17 +147,8 @@ if ( defined $opt{'version'} ) {
 }
 
 # set debug areas, if any specified (only useful for command-line tools)
-my @debug;
 if (defined $opt{'debug'}) {
-  if ($opt{'debug'}) {
-    @debug = split(/,/, $opt{'debug'});
-    if (grep { !/^\S+$/ } @debug) {
-      usage(0, "bad areas in --debug option!");
-    }
-  }
-  else {
-    @debug = ("all");
-  }
+  $opt{'debug'} ||= 'all';
 }
 
 if ( $opt{'force-expire'} ) {
@@ -202,7 +193,7 @@ $spamtest = new Mail::SpamAssassin(
     site_rules_filename => $opt{'siteconfigpath'},
     userprefs_filename  => $opt{'prefspath'},
     username            => $opt{'username'},
-    debug               => \@debug,
+    debug               => $opt{'debug'},
     local_tests_only    => 1,
     dont_copy_prefs     => 1,
     PREFIX              => $PREFIX,

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26