module Dag module CLI class SubCommand < Base include Dag::CLI::Utils::TimeFormat def self.banner(task, namespace = false, subcommand = true) super end desc 'help [COMMAND]', 'Describe available commands or one specific command' def help(command = nil, subcommand = false) super cmd = self.class.name.split('::').last.downcase shell.say "Type 'dag #{cmd} help [COMMAND]' for more information on a specific command" end end end end