Sha256: 4335e0a2403cb4bd2dc9398d80d02f918486f880fe27542aed01e36c232074cb

Contents?: true

Size: 839 Bytes

Versions: 4

Compression:

Stored size: 839 Bytes

Contents

#!/usr/bin/env ruby
#
#  untitled
#
#  Created by Dan MacLean (TSL) on 2012-09-30.
#  Copyright (c)  . All rights reserved.
###################################################
require 'optparse'
options ={}
optparse = OptionParser.new do|opts|

  opts.on( '-j', '--json_file FILE', ' name of JSON config file' ) do |j|
    options[:json] = j
  end

  opts.on( '-o', '--svg_file FILE', ' name of SVG outfile' ) do |s|
    options[:svg] = s
  end

  # This displays the help screen, all programs are
  # assumed to have this option.
  opts.on( '-h', '--help', 'Display this screen' ) do
    puts opts
    exit
  end
end
optparse.parse!



$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'bio-svgenes'

Page.from_json(:json => options[:json], :outfile => options[:svg] )

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bio-svgenes-0.1.4 examples/draw_from_json.rb
bio-svgenes-0.1.3 examples/draw_from_json.rb
bio-svgenes-0.1.2 examples/draw_from_json.rb
bio-svgenes-0.1.1 examples/draw_from_json.rb