Sha256: 4f458982600f1ed162268b809f4e0f2bb442143c0a4d24f68987d6e900ce8f21

Contents?: true

Size: 739 Bytes

Versions: 5

Compression:

Stored size: 739 Bytes

Contents

#!/usr/bin/env ruby
# vim syn=ruby

$: << 'lib'

require "optparse"
require "luobo"

options = Hash.new

OptionParser.new do |opt|
  opt.banner = "Usage: tuzi [OPTIONS] filename"
  opt.separator  ""
  opt.separator  "Options"

  opt.on("-d DRIVER","--driver DRIVER","specify a driver") do |driver|
    options[:driver] = driver
  end

  options[:output] = STDOUT
  opt.on("-o OUTPUT","--output OUTPUT","the output file or file handler") do |output|
    options[:output] = output
  end

  opt.on("-h","--help","help") do
    puts opt
    exit
  end
end.parse!


# ---------
file = ARGV[0]
out = STDOUT

lb = Luobo::Base.new(ARGV[0], out)
lb.driver = options[:driver].new if options[:driver]
lb.process

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
luobo-0.1.3 backup/bin/tuzi
luobo-0.1.2 backup/bin/tuzi
luobo-0.0.5 backup/bin/tuzi
luobo-0.1.0 backup/bin/tuzi
luobo-0.0.2 bin/tuzi