Exception: Console::NoOptionError
- Defined in:
- lib/more/facets/command.rb
Overview
For CommandOptions, but defined external to it, so that it is easy to access from user defined commands. (This lookup issue should be fixed in Ruby 1.9+, and then the class can be moved back into Command namespace.)
Instance Method Summary collapse
-
#initialize(name, *arg) ⇒ NoOptionError
constructor
A new instance of NoOptionError.
Constructor Details
#initialize(name, *arg) ⇒ NoOptionError
Returns a new instance of NoOptionError.
44 45 46 |
# File 'lib/more/facets/command.rb', line 44 def initialize(name, *arg) super("unknown option -- #{name}", name, *args) end |