method
order!
order!(argv, &blk)
public
Hide source
# File lib/spec/runner/option_parser.rb, line 123 def order!(argv, &blk) @argv = argv.dup @argv = (@argv.empty? & self.class.spec_command?) ? ['--help'] : @argv # Parse options file first parse_file_options(:options_file, :parse_options_file) @options.argv = @argv.dup return if parse_file_options(:generate_options, :write_options_file) return if parse_drb super(@argv) do |file| if file =~ /^(.+):(\d+)$/ file = $1 @options.line_number = $2.to_i end @options.files << file blk.call(file) if blk end @options end