method

handle_argument_error

ruby latest stable - Class: Bundler::Thor::Base::ClassMethods

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

handle_argument_error(command, error, args, arity)
public

No documentation available.

# File lib/bundler/vendor/thor/lib/thor/base.rb, line 501
      def handle_argument_error(command, error, args, arity) #:nodoc:
        name = [command.ancestor_name, command.name].compact.join(" ")
        msg = "ERROR: \"#{basename} #{name}\" was called with ".dup
        msg << "no arguments"               if     args.empty?
        msg << "arguments " << args.inspect unless args.empty?
        msg << "\nUsage: #{banner(command).inspect}"
        raise InvocationError, msg
      end