lib/clin/argument.rb
# Given a list of arguments extract the list of arguments that are matched
Given a list of arguments extract the list of arguments that are matched
Given a list of arguments extract the list of arguments that are matched
def parse(argv)
    return handle_empty if argv.empty?
    if @multiple
      ensure_fixed(argv) unless @variable
      [argv, []]
    else
      ensure_fixed(argv[0]) unless @variable
      [argv[0], argv[1..-1]]
    end
  end
def parse ( argv ) return handle_empty if argv . empty? if @multiple ensure_fixed ( argv ) unless @variable [ argv , [ ] ] else ensure_fixed ( argv [ 0 ] ) unless @variable [ argv [ 0 ] , argv [ 1 .. - 1 ] ] end end
Given a list of arguments extract the list of arguments that are matched
Given a list of arguments extract the list of arguments that are matched
argv
<not_specific>