vendor/bundle/ruby/2.6.0/gems/gli-2.19.2/lib/gli/dsl.rb
# Extract the options hash out of the argument to flag/switch and
# set the values if using classic style
Extract the options hash out of the argument to flag/switch and
set the values if using classic style
Extract the options hash out of the argument to flag / switch and set the values if using classic style
def extract_options(names)
      options = {}
      options = names.pop if names.last.kind_of? Hash
      options = { :desc => @next_desc, 
                  :long_desc => @next_long_desc,
                  :default_value => @next_default_value,
                  :arg_name => @next_arg_name}.merge(options)
    end
def extract_options ( names ) options = { } options = names . pop if names . last . kind_of? Hash options = { :desc => @next_desc , :long_desc => @next_long_desc , :default_value => @next_default_value , :arg_name => @next_arg_name } . merge ( options ) end
Extract the options hash out of the argument to flag/switch and
set the values if using classic style
Extract the options hash out of the argument to flag / switch and set the values if using classic style
names
<not_specific>