lib/cl/cmd.rb in cl-0.1.15 vs lib/cl/cmd.rb in cl-0.1.16

- old
+ new

@@ -37,24 +37,19 @@ end opt '--help', 'Get help on this command' attr_reader :ctx, :args + attr_accessor :deprecations def initialize(ctx, args) args, opts = self.class.parse(ctx, args) @ctx = ctx @opts = self.class.opts.apply(self, self.opts.merge(opts)) @args = self.class.args.apply(self, args, opts) end def opts @opts ||= {} - end - - def deprecated_opts - opts = self.class.opts.select(&:deprecated?) - opts = opts.select { |opt| self.opts.key?(opt.deprecated[0]) } - opts.map(&:deprecated).to_h end end end