Exception: RakeCommander::Options::MissingOption

Inherits:
ErrorRely
  • Object
show all
Defined in:
lib/rake-commander/options/error.rb

Constant Summary

Constants inherited from ErrorRely

ErrorRely::OPTION_REGEX

Constants included from Name

Name::DOUBLE_HYPHEN_REGEX, Name::HYPEN_REGEX, Name::HYPHEN_START_REGEX, Name::OPTIONAL_REGEX, Name::SINGLE_HYPHEN_REGEX, Name::SPACE_REGEX, Name::UNDERSCORE_REGEX

Instance Method Summary collapse

Methods inherited from ErrorRely

#name?, #option_sym, #short?

Methods included from Name

#argument_optional?, #argument_required?, #double_hyphen?, #name_argument, #name_argument?, #name_hyphen, #name_hyphen?, #name_sym, #name_word_sym, #short_hyphen, #short_hyphen?, #short_sym, #single_hyphen?, #valid_name?, #valid_short?

Constructor Details

#initialize(value) ⇒ MissingOption

Returns a new instance of MissingOption.



5
6
7
# File 'lib/rake-commander/options/error.rb', line 5

def initialize(value)
  super("missing required option: #{to_description(value)}")
end