Method: Osis2Html5.run
- Defined in:
- lib/osis2html5.rb
.run ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/osis2html5.rb', line 12 def run opts = {} OptionParser.new do |o| o. = "usage: osis2html5 [options] <input.osis> <output dirname>" o.on('-v', '--version', 'show version') do puts "osis2html5 #{VERSION}" exit end o.on('-h', '--help', 'prints this help') do puts o exit end o.on('--erb', 'enable erb mode') do opts[:erb] = true end end.parse! main(*ARGV, **opts) end |