parse!(args, runtime_options = {})
protected
Parse arguments into the options hash. Classes may
customize parsing behavior by overriding these methods:
some options..
general options..
Show source
def parse!(args, runtime_options = {})
self.options = {}
@option_parser = OptionParser.new do |opt|
opt.banner = banner
add_options!(opt)
add_general_options!(opt)
opt.parse!(args)
end
return args
ensure
self.options = full_options(runtime_options)
end