Revision: 3238
http://spambayes.svn.sourceforge.net/spambayes/?rev=3238&view=rev
Author: montanaro
Date: 2009-02-06 03:57:13 +0000 (Fri, 06 Feb 2009)
Log Message:
-----------
support --verbose to work with nose.
Modified Paths:
--------------
trunk/spambayes/scripts/sb_imapfilter.py
Modified: trunk/spambayes/scripts/sb_imapfilter.py
===================================================================
--- trunk/spambayes/scripts/sb_imapfilter.py 2009-02-06 03:55:29 UTC (rev
3237)
+++ trunk/spambayes/scripts/sb_imapfilter.py 2009-02-06 03:57:13 UTC (rev
3238)
@@ -1133,7 +1133,8 @@
def run(force_UI=False):
try:
- opts, args = getopt.getopt(sys.argv[1:], 'hbPtcvl:e:i:d:p:o:')
+ opts, args = getopt.getopt(sys.argv[1:], 'hbPtcvl:e:i:d:p:o:',
+ ["verbose"])
except getopt.error, msg:
print >> sys.stderr, str(msg) + '\n\n' + __doc__
sys.exit()
@@ -1158,7 +1159,7 @@
promptForPass = True
elif opt == '-c':
doClassify = True
- elif opt == '-v':
+ elif opt in ('-v', '--verbose'):
options["globals", "verbose"] = True
elif opt == '-e':
if arg == 'y':
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins