#!/usr/bin/env ruby require 'slop' ENV['RACK_ENV'] ||= 'production' # display name for tools like `ps` $PROGRAM_NAME = 'genevalidatorapp' opts = Slop.parse do |o| o.banner = < e puts '*** Error: GeneValidator failed to initialise properly.' puts ' Please check all paramaters and try again.' puts ' See https://github.com/IsmailM/GeneValidatorApp for more help' exit e.status end puts GeneValidatorApp::Database.all? if opts.list_databases? GeneValidatorApp.send(:write_config_file) if opts.set? GeneValidatorApp.run