Sha256: bfc01709de3e8e8c016a17e4818e4c68668a06cb4639b291956cf069713a7c9b
Contents?: true
Size: 742 Bytes
Versions: 7
Compression:
Stored size: 742 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! require 'bio-svgenes' Bio::Graphics::Page.from_json(:json => options[:json], :outfile => options[:svg] )
Version data entries
7 entries across 7 versions & 1 rubygems