Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
default_command(meth = nil)
public
Sets the default command when thor is executed without an explicit command
to be called.
meth |
name of the default command
|
# File lib/bundler/vendor/thor/lib/thor.rb, line 21
def default_command(meth = nil)
if meth
@default_command = meth == :none ? "help" : meth.to_s
else
@default_command ||= from_superclass(:default_command, "help")
end
end