lib/bukkit.rb in bukkit-0.1.3 vs lib/bukkit.rb in bukkit-0.1.4

- old
+ new

@@ -1,6 +1,6 @@ -# Orderly and Alphabetical requires h, i, n, s, v +# Orderly and Alphabetical Require Statements require 'rubygems' require 'bukkit/download' require 'bukkit/help' require 'bukkit/install' @@ -13,14 +13,14 @@ module Bukkit opt1 = ARGV[0] # First arg control flow case opt1 - when "-v", "--version", "version" + when "-v", "--version", "version", "v" puts Bukkit::VERSION_FULL - when "-h", "--help", "help" - Bukkit::help + when "-h", "--help", "help", "h" + Bukkit::Help.all when "new" Bukkit::new when "start" Bukkit::start when "install" @@ -30,12 +30,13 @@ when "update" Bukkit::update else if opt1.nil? puts "You didn't enter a command.\n" - Bukkit::help + 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