#!/usr/bin/ruby
# encoding: utf-8
require 'blomming_api'

USAGE = <<ENDUSAGE

Usage: blomming_api [option]
\t-a: Authentication set-up help 
\t-e: Endpoints methods list 
\t-v: Version and gem info

ENDUSAGE

if ARGV.empty?
  puts USAGE
  exit
end

option = ARGV[0].downcase

if option == "-v"
  puts
  puts "About gem:"
  puts BlommingApi::about
  puts
elsif option == "-a"
  puts
  puts "Authentication set-up help:"
  puts BlommingApi::authentication_help
  puts
elsif option == "-e"
  puts
  puts "Endpoints methods list:\n\n"
  BlommingApi::endpoints_help
  puts
else
  puts USAGE  	
end


