method

check_unknown!

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

Method not available on this version

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

check_unknown!()
public

No documentation available.

# File lib/bundler/vendor/thor/lib/thor/parser/options.rb, line 122
    def check_unknown!
      # an unknown option starts with - or -- and has no more --'s afterward.
      unknown = @extra.select { |str| str =~ /^--?(?:(?!--).)*$/ }
      raise UnknownArgumentError, "Unknown switches '#{unknown.join(', ')}'" unless unknown.empty?
    end