Module: GLI::DSL

Defined in:
lib/gli_patches.rb

Instance Method Summary collapse

Instance Method Details

#extract_options(names) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/gli_patches.rb', line 7

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,
    :ignore_default => @ignore_default,
    :arg_name => @next_arg_name
  }.merge(options)
end