method

handle_argument_error

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