Method: Pry::Slop#missing

Defined in:
lib/pry/slop.rb

#missingObject

Fetch a list of options which were missing from the parsed list.

Examples:

opts = Slop.new do
  on :n, :name=
  on :p, :password=
end

opts.parse %w[ --name Lee ]
opts.missing #=> ['password']

Returns an Array of Strings representing missing options.



357
358
359
# File 'lib/pry/slop.rb', line 357

def missing
  (options - @triggered_options).map(&:key)
end