module Thor::Base::ClassMethods
def remove_command(*names)
to be undefined from the class as well.
options
name
==== Parameters
:undefine => true to undefine the method from the class as well.
By default it only remove the mapping to the command. But you can supply
anymore.
are inheriting from another class and don't want it to be available
Removes a given command from this Thor class. This is usually done if you
def remove_command(*names) options = names.last.is_a?(Hash) ? names.pop : {} names.each do |name| commands.delete(name.to_s) all_commands.delete(name.to_s) undef_method name if options[:undefine] end end