Sha256: d72c80be11b6382172b552bc23dc7bfb092f763f77b100eee24c2c4110be0b38
Contents?: true
Size: 846 Bytes
Versions: 4
Compression:
Stored size: 846 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))) require "rubygems" require "optparse" require "tprov" require "version" options = {} optparse = OptionParser.new do |opts| # Set a banner, displayed at the top # of the help screen. opts.banner = "Usage: TProv [options] ..." opts.separator '' opts.separator "Configuration options:" opts.on_tail( "-v", "--version", "Show version") do puts "WProv version #{TProv::VERSION}" exit end opts.separator "" opts.separator "Common options:" opts.on_tail("-h", "--help", "Display this screen" ) do puts opts exit end end begin optparse.parse! TProv::Application.run! rescue OptionParser::InvalidArgument, OptionParser::InvalidOption, OptionParser::MissingArgument puts $!.to_s puts optparse exit end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tprov-0.0.6 | bin/tprov |
tprov-0.0.4 | bin/tprov |
tprov-0.0.3 | bin/tprov |
tprov-0.0.2 | bin/tprov |