lib/clin/command_mixin/options.rb
# To be called inside OptionParser block
# Extract the option in the command line using the OptionParser and map it to the out map.
# @return [Hash] Where the options shall be extracted
To be called inside OptionParser block
Extract the option in the command line using the OptionParser and map it to the out map.
To be called inside OptionParser block Extract the option in the command line using the OptionParser and map it to the out map .
def option_defaults
      out = {}
      @specific_options.each do |option|
        option.load_default(out)
      end
      @general_options.each do |_cls, option|
        out.merge! option.class.option_defaults
      end
      out
    end
def option_defaults out = { } @specific_options . each do | option | option . load_default ( out ) end @general_options . each do | _cls , option | out . merge! option . class . option_defaults end out end
To be called inside OptionParser block
Extract the option in the command line using the OptionParser and map it to the out map.
To be called inside OptionParser block Extract the option in the command line using the OptionParser and map it to the out map .
None
Hash