lib/cl/cmd.rb in cl-1.2.2 vs lib/cl/cmd.rb in cl-1.2.3

- old
+ new

@@ -5,10 +5,11 @@ require 'cl/opts' require 'cl/parser' class Cl singleton_class.send(:attr_accessor, :auto_register) # remove unless anyone needs this + singleton_class.instance_variable_set(:@auto_register, true) # Base class for all command classes that can be run. # # Inherit your command classes from this class, use the {Cl::Cmd::Dsl} to # declare arguments, options, summary, description, examples etc., and @@ -21,10 +22,10 @@ class << self include Merge, Suggest, Underscore inherited = ->(const) do - return unless Cl.auto_register + # return unless Cl.auto_register if const.name key = underscore(const.name.split('::').last) key = [registry_key, key].compact.join(':') unless abstract? const.register(key) end