Method: Clio::Commandable.parse_flags
- Defined in:
- lib/clio/commandable.rb
.parse_flags(obj, opt, args) ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/clio/commandable.rb', line 138 def parse_flags(obj, opt, args) x = opt[1..-1] c = 0 x.split(//).each do |k| if obj.respond_to?("#{k}=") obj.send("#{k}=",true) else obj.option_missing(x, argv) end end end |