Exception: Hobo::InvalidCommandOrOpt

Inherits:
Error
  • Object
show all
Defined in:
lib/hobo/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#exit_code

Instance Method Summary collapse

Constructor Details

#initialize(command, cli = nil) ⇒ InvalidCommandOrOpt

Returns a new instance of InvalidCommandOrOpt.



21
22
23
24
25
# File 'lib/hobo/errors.rb', line 21

def initialize command, cli = nil
  @command = command
  @cli = cli
  super("Invalid command or option specified: '#{command}'")
end

Instance Attribute Details

#cliObject

Returns the value of attribute cli.



20
21
22
# File 'lib/hobo/errors.rb', line 20

def cli
  @cli
end

#commandObject

Returns the value of attribute command.



20
21
22
# File 'lib/hobo/errors.rb', line 20

def command
  @command
end