[Spambayes-checkins] spambayes hammiefilter.py,1.17,1.18
Skip Montanaro
montanaro at users.sourceforge.net
Thu Jun 5 09:06:27 EDT 2003
Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv13821
Modified Files:
hammiefilter.py
Log Message:
tweak usage message to clarify which flags cause a modified message to be
emitted to stdout and wrapped one long line
Index: hammiefilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/hammiefilter.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** hammiefilter.py 2 May 2003 04:05:12 -0000 1.17
--- hammiefilter.py 5 Jun 2003 15:06:24 -0000 1.18
***************
*** 28,34 ****
-n
create a new database
! * -f
filter (default if no processing options are given)
! * -t
[EXPERIMENTAL] filter and train based on the result (you must
make sure to untrain all mistakes later)
--- 28,34 ----
-n
create a new database
! *+ -f
filter (default if no processing options are given)
! *+ -t
[EXPERIMENTAL] filter and train based on the result (you must
make sure to untrain all mistakes later)
***************
*** 44,51 ****
this message)
! All processing options (marked with *) operate on stdin. If no
! processing options are given, stdin will be scored: the same message,
! with a new header containing the score, will be send to stdout.
!
"""
--- 44,49 ----
this message)
! All options marked with '*' operate on stdin. Only those processing options
! marked with '+' send a modified message to stdout.
"""
***************
*** 148,152 ****
h = HammieFilter()
actions = []
! opts, args = getopt.getopt(sys.argv[1:], 'hxd:D:nfgstGS', ['help', 'examples'])
for opt, arg in opts:
if opt in ('-h', '--help'):
--- 146,151 ----
h = HammieFilter()
actions = []
! opts, args = getopt.getopt(sys.argv[1:], 'hxd:D:nfgstGS',
! ['help', 'examples'])
for opt, arg in opts:
if opt in ('-h', '--help'):
More information about the Spambayes-checkins
mailing list