Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 40 lines (26 sloc) 0.968 kb
#!/usr/bin/env ruby
$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')
require 'optparse'
require 'validator'
options = {}
OptionParser.new do |opts|
opts.banner = 'Usage: -r [recommendations_file] -s [samples_file] -c [categories_file]'
opts.on('-r', '--recommendations RECOMMENDATIONS', 'The recommendations file') do |rec_file|
options[:recommendations] = rec_file
end
opts.on('-s', '--samples SAMPLES', 'The samples file') do |samples_file|
options[:samples] = samples_file
end
opts.on('-c', '--categories CATEGORIES', 'The categories file') do |categories_file|
options[:categories] = categories_file
end
opts.on( '-h', '--help', 'Display this screen' ) do
puts opts
exit
end
opts.on( '-t', '--threshold THRESHOLD', 'Dismiss recommendations below threshold') do |threshold|
options[:threshold] = threshold
end
end.parse!
validator = Validator::ValidationRunner.new(options)
puts validator.validate
Jump to Line
Something went wrong with that request. Please try again.