Sha256: 883a0c5f41d9cecf1a1e758d3f3a943570e4708c8ac7e61161330e97ffc7bde9

Contents?: true

Size: 658 Bytes

Versions: 18

Compression:

Stored size: 658 Bytes

Contents

#!/usr/bin/env ruby

require 'pathname'

bindir = Pathname.new(__FILE__).realpath.dirname
$LOAD_PATH.unshift((bindir + '../lib').realpath)

unless defined?(::Encoding)
  # Ruby 1.8
  $KCODE = 'UTF-8'
end

require 'bitclust/searcher'

def main
  Signal.trap(:PIPE, 'IGNORE') rescue nil  # Win32 does not have SIGPIPE
  Signal.trap(:INT) { exit 1 }
  _main
rescue Errno::EPIPE
  exit 0
end

def _main
  refe = BitClust::Searcher.new
  refe.parse ARGV
  refe.exec nil, ARGV
rescue OptionParser::ParseError => err
  $stderr.puts err.message
  $stderr.puts refe.parser.help
  exit 1
rescue BitClust::UserError => err
  $stderr.puts err.message
  exit 1
end

main

Version data entries

18 entries across 11 versions & 2 rubygems

Version Path
refe2-0.6.0 bin/refe
refe2-0.5.5 bin/refe
refe2-0.5.4 bin/refe
refe2-0.5.3 bin/refe
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/bin/refe
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/refe2-0.5.1/bin/refe
bitclust-core-0.5.3 bin/refe
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/refe2-0.5.1/bin/refe
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/bin/refe
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/bin/refe
refe2-0.5.2 bin/refe
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/refe2-0.5.1/bin/refe
bitclust-core-0.5.2 bin/refe
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/bin/refe
refe2-0.5.1 bin/refe
bitclust-core-0.5.1 bin/refe
refe2-0.5.0 bin/refe
bitclust-core-0.5.0 bin/refe