Method: Pry::Slop#parse

Defined in:
lib/pry/slop.rb

#parse(items = ARGV, &block) ⇒ Object

Parse a list of items, executing and gathering options along the way.

items - The Array of items to extract options from (default: ARGV). block - An optional block which when used will yield non options.

Returns an Array of original items.



206
207
208
209
# File 'lib/pry/slop.rb', line 206

def parse(items = ARGV, &block)
  parse! items.dup, &block
  items
end