Method: Ark::CLI::Option#value

Defined in:
lib/ark/cli/option.rb

#valueObject

Return the current value of this option



76
77
78
79
80
81
82
83
84
# File 'lib/ark/cli/option.rb', line 76

def value()
  if self.flag?
    return @flag
  else
    vals = @args.map {|a| a.value }
    vals = vals.first if vals.length == 1
    return vals
  end
end