class Raykit::Console
def initialize
def initialize @opts = Slop.parse do |o| o.string "-t", "--task", "rake task", default: "default" o.bool "-v", "--verbose", "print detailed output", default: false o.bool "-q", "--quiet", "minimal output", default: false o.bool "-s", "--stop", "stop on error", default: true end if opts.verbose? puts "options: #{Rainbow(@opts.to_hash).yellow.bright}" puts "arguments:#{Rainbow(@opts.arguments).yellow.bright}" end end