method
parse_generate_options
1.1.4 -
Show latest stable
- Class:
Spec::Runner::OptionParser
parse_generate_options()protected
No documentation available.
# File lib/spec/runner/option_parser.rb, line 148
def parse_generate_options
# Remove the --generate-options option and the argument before writing to file
options_file = nil
['-G', '--generate-options'].each do |option|
if index = @argv.index(option)
@argv.delete_at(index)
options_file = @argv.delete_at(index)
end
end
if options_file
write_generated_options(options_file)
return true
else
return false
end
end