Class: Thor::Arguments
- Inherits:
-
Object
- Object
- Thor::Arguments
- Defined in:
- lib/inspec/base_cli.rb
Overview
Allow end of options during array type parsing github.com/erikhuda/thor/issues/631
Instance Method Summary collapse
Instance Method Details
#parse_array(_name) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/inspec/base_cli.rb', line 11 def parse_array(_name) return shift if peek.is_a?(Array) array = [] while current_is_value? break unless @parsing_options array << shift end array end |