Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
split(args)
public
Receives an array of args and returns two arrays, one with arguments and
one with switches.
# File lib/bundler/vendor/thor/lib/thor/parser/arguments.rb, line 8
def self.split(args)
arguments = []
args.each do |item|
break if item =~ /^-/
arguments << item
end
[arguments, args[Range.new(arguments.size, -1)]]
end