Module: DTK::Client::CommandBaseThor::CommonOptionDefs::Mixin
- Defined in:
- lib/parser/adapters/thor/common_option_defs.rb
Instance Method Summary collapse
Instance Method Details
#required_option(key) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/parser/adapters/thor/common_option_defs.rb', line 22 def required_option(key) key = key.to_s unless .has_key?(key) raise DtkError, "[ERROR] The mandatory option --#{key} is missing" end [key] end |