lib/command/base.rb in cpl-1.1.2.rc.0 vs lib/command/base.rb in cpl-1.1.2

- old
+ new

@@ -174,9 +174,21 @@ required: required } } end + def self.verbose_option(required: false) + { + name: :verbose, + params: { + aliases: ["-d"], + desc: "Shows detailed logs", + type: :boolean, + required: required + } + } + end + def self.all_options methods.grep(/_option$/).map { |method| send(method.to_s) } end def self.all_options_by_key_name