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
#old_parse_array ⇒ Object
13 |
# File 'lib/inspec/base_cli.rb', line 13 alias old_parse_array parse_array |
#parse_array(_name) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/inspec/base_cli.rb', line 15 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 |