#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-

require 'webgen/cli'
begin
  Webgen::CLI::CommandParser.new.parse
rescue
  puts "An error has occurred:\n  " + $!.message
  puts $!.backtrace if $DEBUG
  exit(-1)
end
