Exception: Hawknee::Helpers::BadOption

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/hawknee/helpers.rb

Overview

Exceptions/errors down here

Instance Method Summary collapse

Constructor Details

#initializeBadOption

Returns a new instance of BadOption.



38
39
40
41
42
# File 'lib/hawknee/helpers.rb', line 38

def initialize
	puts "Ooops!".bold.colorize(:red) + " It seems, you passed invalid option"
	puts "Run with " + "-h".bold.colorize(:blue) + " or " + "--help".bold.colorize(:blue) + " option, to get some help."
	exit
end