Method: Pry::Slop#fetch_command

Defined in:
lib/pry/slop.rb

#fetch_command(command) ⇒ Object

Fetch a Slop object associated with this command.

command - The String or Symbol name of the command.

Examples:

opts.command :foo do
  on :v, :verbose, 'Enable verbose mode'
end

# ruby run.rb foo -v
opts.fetch_command(:foo).verbose? #=> true


389
390
391
# File 'lib/pry/slop.rb', line 389

def fetch_command(command)
  @commands[command.to_s]
end