# File lib/mongo/collection.rb, line 977 def command_options(opts) out = {} if read = opts[:read] Mongo::ReadPreference::validate(read) else read = @read end out[:read] = read out[:comment] = opts[:comment] if opts[:comment] out end