# Orderly and Alphabetical requires h, i, n, s, v require 'rubygems' require 'bukkit/download' require 'bukkit/help' require 'bukkit/install' require 'bukkit/new' require 'bukkit/start' require 'bukkit/update' require 'bukkit/version' require 'bukkit/website' module Bukkit opt1 = ARGV[0] # First arg control flow case opt1 when "-v", "--version", "version" puts Bukkit::VERSION_FULL when "-h", "--help", "help" Bukkit::help when "new" Bukkit::new when "start" Bukkit::start when "install" Bukkit::install when "website" Bukkit::website(ARGV[1].downcase) when "update" Bukkit::update else if opt1.nil? puts "You didn't enter a command.\n" Bukkit::help else puts "'#{opt1}' is not a command." puts "Run 'bukkit --help' for a list of commands." end end end