class Object
Constants
- ML
Public Instance Methods
get_opt_args()
click to toggle source
# File lib/sprockets_fs/log.rb, line 150 def get_opt_args require 'optparse' options = {} OptionParser.new do |opts| opts.on("-s","--s SPEC") do |v| v = /#{v[1..-1]}/i if v[0..0] == '/' options[:spec] = v end opts.on("-c","--c CALLER") do |v| v = /#{v[1..-1]}/i if v[0..0] == '/' options[:caller] = v end end.parse! puts "options #{options.inspect}" options end