Sha256: f4561b0992340a8c59f78354f4ebc83fa09447b17e03d708e3dd2a7e9be94675

Contents?: true

Size: 605 Bytes

Versions: 6

Compression:

Stored size: 605 Bytes

Contents

#!/usr/bin/env ruby
require "rubygems"
require File.dirname(__FILE__) + "/../lib/jsonget"
require "rwget"

parser = RWGetOptionParser.new do |opts|
  opts.on("--parselet=JSON_FILE", "JSON_FILE is a parselet.") do |path|
    parser.options[:parselets] ||= []
    parser.options[:parselets] << path
  end
end
parser.parse!

if parser.options[:seeds].empty?
  puts parser.usage
  puts "    -h for options listing"
  exit(1) 
end

parser.options[:store_class] ||= "JSONStore"

controller = RWGet::Controller.new(parser.options)
begin
  controller.start
ensure
  STDERR.puts "Closing..."
  controller.close
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
fizx-csvget-0.2.0 bin/jsonget
fizx-csvget-0.2.1 bin/jsonget
fizx-csvget-0.3.0 bin/jsonget
fizx-csvget-0.3.1 bin/jsonget
fizx-csvget-0.3.2 bin/jsonget
csvget-0.4.0 bin/jsonget