Method: Clio::Commandable.parse_option
- Defined in:
- lib/clio/commandable.rb
.parse_option(obj, opt, argv) ⇒ Object
128 129 130 131 132 133 134 135 |
# File 'lib/clio/commandable.rb', line 128 def parse_option(obj, opt, argv) x = opt[2..-1] if obj.respond_to?("#{x}=") obj.send("#{x}=",true) else obj.option_missing(x, argv) end end |