#!/usr/bin/env ruby require "terraformer" begin Terraformer::CLI.start(ARGV) rescue Exception => exception case exception when Terraformer::UserInputError exit 0 else message = "[ERROR] #{exception.class.to_s}" message += " => #{exception.message}" unless exception.message.strip.empty? puts message exit 1 end end