Class: Pifan::CLI

Inherits:
Object
  • Object
show all
Includes:
TTY::Option
Defined in:
lib/pifan/cli.rb

Instance Method Summary collapse

Instance Method Details

#runObject



72
73
74
75
76
77
78
79
80
81
82
# 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