Sha256: 9f28667c8af66e2afffa30c800a9f4354138ce2d87b8a2d74d482ef6c333efd3
Contents?: true
Size: 603 Bytes
Versions: 94
Compression:
Stored size: 603 Bytes
Contents
require "shelly" require "thor" require "thor/thor" require "thor/group" require "thor/options" require "thor/arguments" require "thor/basic" module Shelly module CLI class Command < Thor include Helpers class_option :debug, :type => :boolean, :desc => "Show debug information" class_option :help, :type => :boolean, :aliases => "-h", :desc => "Describe available tasks or one specific task" def initialize(*) super if options[:help] help(self.class.send(:retrieve_task_name, ARGV.dup)) exit(0) end end end end end
Version data entries
94 entries across 94 versions & 1 rubygems