class WorldTides::CLI

Handle the application command line parsing and the dispatch to various command objects

@api public

Constants

Error

Error raised by this runner

Public Instance Methods

fetch(filename, lon, lat) click to toggle source
# File lib/world_tides/cli.rb, line 24
def fetch(filename, lon, lat)
  if options[:help]
    invoke :help, ['fetch']
  else
    require_relative 'commands/fetch'
    WorldTides::Commands::Fetch.new(filename, lon, lat, options).execute
  end
end
version() click to toggle source
# File lib/world_tides/cli.rb, line 15
def version
  require_relative 'version'
  puts "v#{WorldTides::VERSION}"
end