module Sonice::CommandLine

Module CommandLine

Public Instance Methods

parse(argv) click to toggle source
# File lib/sonice/command_line.rb, line 11
def parse(argv)
  case argv

  when []
    Sonice::App.run!

  when ["--version"]
    puts "so nice v#{Sonice::VERSION}"
    puts "https://github.com/sunny/so-nice"

  else
    puts "Usage: sonice [--version]"
    exit(1)
  end
end