class Spec::Runner::OptionParser
def parse_file_options(option_name, action)
def parse_file_options(option_name, action) # Remove the file option and the argument before handling the file options_file = nil options_list = OPTIONS[option_name][0..1] options_list[1].gsub!(" PATH", "") options_list.each do |option| if index = @argv.index(option) @argv.delete_at(index) options_file = @argv.delete_at(index) end end if options_file send(action, options_file) return true else return false end end