1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Ensure ARGV is not mutated during option parsing.

This commit is contained in:
John Mair 2012-01-29 21:46:12 +13:00
parent 1ae93034da
commit f4d1f448bb

View file

@ -52,7 +52,7 @@ class Pry
self.option_processors = nil
end
def parse_options(args=ARGV)
def parse_options(args=ARGV.dup)
raise NoOptionsError, "No command line options defined! Use Pry::CLI.add_options to add command line options." if !options
opts = Slop.parse(args, :help => true, :multiple_switches => false, &options)