class Thor::Arguments
def parse_array(name)
["a", "b", "c"]
And returns it as an array:
["a", "b", "c"]
found or a switch is found.
Runs through the argument array getting all strings until no string is
def parse_array(name) return shift if peek.is_a?(Array) array = [] while current_is_value? value = shift if !value.empty? validate_enum_value!(name, value, "Expected all values of '%s' to be one of %s; got %s") end array << value end array end