Class: Exec::ServiceLs::CustomCommandOption

Inherits:
CommandOption show all
Defined in:
lib/exec/service_ls.rb

Overview

Inherited CommandOption used only by ServiceLs.

Instance Attribute Summary

Attributes inherited from CommandOption

#values

Instance Method Summary collapse

Methods inherited from CommandOption

#add_option, #get_banner, #get_help, #get_sorted_options, #has_argument, #initialize, #initialize_option_values, #verify

Constructor Details

This class inherits a constructor from Exec::CommandOption

Instance Method Details

#check_mandatoryObject (protected)

This method overrides the default behaviour.

Raises:



118
119
120
# File 'lib/exec/service_ls.rb', line 118

def check_mandatory
  raise Common::MissingParameter.new("-C", get_help()) if !@values["help"] && !@values["all"] && @values["cluster"].nil?
end