RubyUtils/bin/optparse

17 lines
288 B
Ruby
Executable File

#!/usr/bin/env ruby
$LOAD_PATH << File.join(Dir.pwd, "lib")
require "optparse"
require "uuid"
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: mybin [options]"
opts.on("-x=", "--xarg=VALUE", "Some description") do |value|
options[:xarg] = value
end
end.parse!