require 'active_support/core_ext' require 'fileutils' $:.unshift File.expand_path(File.join("..", "lib", "deano"), File.dirname(__FILE__)) require 'commands' command = ARGV[0] Deano::Command.commands.each do |klass| if klass.command == command klass.new(ARGV).call exit(0) end end Deano::Command.commands.each do |klass| if klass.respond_to?(:help) puts "deano #{klass.command} #{klass.help}" end end