private Method

RakeFileUtils.rake_check_options(options, *optdecl)

Check that the options do not contain options not listed in optdecl. An ArgumentError exception is thrown if non-declared options are found.

Source Code

# File rake.rb, line 1074
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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.