Exception: Hawknee::Helpers::BadOption
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Hawknee::Helpers::BadOption
- Defined in:
- lib/hawknee/helpers.rb
Overview
Exceptions/errors down here
Instance Method Summary collapse
-
#initialize ⇒ BadOption
constructor
A new instance of BadOption.
Constructor Details
#initialize ⇒ BadOption
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 |