#!/usr/bin/env ruby require 'pathname' root = Pathname.new(__FILE__).realpath.parent.parent $:.unshift root.join('lib') if $0 == __FILE__ require 'optparse' require 'brand2csv' def help <= 1 puts help exit 1 end begin Brand2csv::run(args[0], args[1]) rescue Interrupt puts "Unterbrochen. Breche mit Fehler ab" exit 1 end puts "#{__FILE__} completed successfully" if $VERBOSE