bin/modsulator
#!/usr/bin/env ruby
# frozen_string_literal: true
# This is a command line script that generates <xmlDocs> using the modsulator methods.
abort 'Usage: bin/modsulator <spreadsheet>' unless ARGV.length == 1
unless File.exist?(ARGV[0]) && File.readable?(ARGV[0])
abort "*** The file #{ARGV[0]} does not exist or is not readable to the current user? - Terminating."
end
require_relative '../config/environment'
modsulator = Modsulator.new(File.new(ARGV[0]), File.basename(ARGV[0]))
puts modsulator.convert_rows