Sha256: 68c5f24a5e9120e4fb26bf50486afacbc41b246f43b1fd3c266f56ee70a80d2b
Contents?: true
Size: 984 Bytes
Versions: 2
Compression:
Stored size: 984 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.push File.expand_path('../../lib', __FILE__) require 'optparse' require 'rubrowser' require 'rubrowser/renderer' options = { toolbox: true, layout: nil, output: STDOUT } OptionParser.new do |opts| opts.banner = "Usage: #{__FILE__} [options] [file] ..." opts.on('-oFILE', '--output=FILE', 'output file page, if not specified output will be written to stdout') do |output| options[:output] = output end opts.on('-lFILE', '--layout=FILE', 'layout file to apply on the resulting graph') do |layout| options[:layout] = layout end opts.on('-T', '--no-toolbox', 'Don\'t display toolbox on the page') do options[:toolbox] = false end opts.on('-v', '--version', 'Print Rubrowser version') do puts "Rubrowser #{Rubrowser::VERSION}" exit end opts.on('-h', '--help', 'Prints this help') do puts opts exit end end.parse! options[:files] = ARGV.empty? ? ['.'] : ARGV Rubrowser::Renderer.call(options)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubrowser-2.5.0 | bin/rubrowser |
rubrowser-2.4.0 | bin/rubrowser |