Sha256: d849c7a47f9065a60544da0c576a96f15f55a68d0084e6d555cc3441f6a78402
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.push File.expand_path('../../lib', __FILE__) require 'optparse' require 'rubrowser' require 'rubrowser/renderer' options = { toolbox: true } OptionParser.new do |opts| opts.banner = "Usage: #{__FILE__} [options] [file] ..." 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 puts Rubrowser::Renderer.call(options)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubrowser-2.1.0 | bin/rubrowser |