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:
parent
1ae93034da
commit
f4d1f448bb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue