#!/usr/bin/env ruby
require 'pathname'

base_path = Pathname(__FILE__).dirname.parent.expand_path
$LOAD_PATH.unshift("#{base_path}/lib")

require 'optparse'
require 'roma/tools/mkconfig'

opt = OptionParser.new
opt.on("-m","--with_menu", "Show menu to setup configurations individually.") { |v| Roma::Mkconfig.new(:with_menu)}

if ARGV.count == 0
  Roma::Mkconfig.new
elsif
  begin
    opt.parse!(ARGV)
  rescue OptionParser::InvalidOption
    puts opt.help
  end
end
