This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
rake_check_options(options, *optdecl)
public
Check that the options do not contain options not listed in
optdecl. An ArgumentError
exception is thrown if non-declared options are found.
# File lib/rake/file_utils_ext.rb, line 133
def rake_check_options(options, *optdecl)
h = options.dup
optdecl.each do |name|
h.delete name
end
raise ArgumentError, "no such option: #{h.keys.join(' ')}" unless
h.empty?
end