Sha256: 098216a2ac347cfa4faeab90e4ac619cac1ae87fd70d2d8cd13bfaf9d0a3085b
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
# Orderly and Alphabetical Require Statements 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", "v" puts Bukkit::VERSION_FULL when "-h", "--help", "help", "h" Bukkit::Help.all 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.all else puts "'#{opt1}' is not a command." puts "Run 'bukkit --help' for a list of commands." Bukkit::Help.all end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bukkit-0.1.4 | lib/bukkit.rb |