class Pifan::CLI

Public Instance Methods

run() click to toggle source
# File lib/pifan/cli.rb, line 72
def run
  if params[:help]
    print help
    exit
  elsif params[:version]
    $stdout.puts Pifan::VERSION
    exit
  else
    params.to_h
  end
end