method

handle_argument_error

ruby latest stable - Class: Bundler::Thor::Group

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/group.rb, line 207
    def handle_argument_error(command, error, _args, arity) #:nodoc:
      msg = "#{basename} #{command.name} takes #{arity} argument".dup
      msg << "s" if arity > 1
      msg << ", but it should not."
      raise error, msg
    end