Sha256: 285ec82839aa7a61284c5fa43d14601ab0e983befb9c97fce8291c4dea9f036e
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
#!/usr/bin/env ruby require 'open3' BIN_PATH = File.join(File.dirname(__FILE__), '..', 'ext', 'pkg', 'bin') available_commands = %w(lookup reverse-lookup predictive-search benchmark build common-prefix-search dump) if ARGV.size > 0 && available_commands.include?(ARGV.first.downcase) marisa_command = File.join(BIN_PATH, "marisa-#{ARGV[0]}") exec(marisa_command, *ARGV[1..-1]) else $stderr.puts "USAGE: melisa COMMAND [options]" $stderr.puts "Commands: #{available_commands}" $stderr.puts "See http://marisa-trie.googlecode.com/svn/trunk/docs/readme.en.html" exit -1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
melisa-0.2.5 | bin/melisa |
melisa-0.2.4 | bin/melisa |
melisa-0.2.2 | bin/melisa |