4 confdir = ENV['HOME'] + '/settings/mailvisa'
7 usage = 'USAGE: ' + $0 + ' [options]'
12 -c <path> Look for files in <path> (default: $HOME/settings/mailvisa)
13 -f <path> Load scores from <path> (default: scores)
16 ## Process command line
31 $stderr.puts 'Unknown option: ' + ARGV[i]
33 $stderr.puts 'Use "' + $0 + ' -h" for help'
41 scorefile = confdir + '/' + scorefile if scorefile.index('/') == nil
48 db[:words].each do |word,score|
49 puts "#{word}: #{score}"