Sha256: e7642f595623adf01967d960bec874eeb1c91e10cacc1145e67254a287043b51
Contents?: true
Size: 767 Bytes
Versions: 7
Compression:
Stored size: 767 Bytes
Contents
#!/usr/bin/env ruby require 'pathname' root = Pathname.new(__FILE__).realpath.parent.parent $:.unshift root.join('lib') if $0 == __FILE__ require 'oddb2xml/version' require 'oddb2xml/semantic_check' require 'optimist' @opts = Optimist::options(ARGV) do version "#$0 ver.#{Oddb2xml::VERSION}" banner <<-EOS Runs various semanti_check for the Elexis artikelstamm Usage: #{File.basename(__FILE__)} xml_file_to_check EOS end $stdout.sync = false args = ARGV if args.size != 1 puts "you must pass exactly one existing files. Not #{args}" exit 2 end startTime = Time.now result = Oddb2xml::SemanticCheck.new(ARGV.first).allSemanticChecks diff = (Time.now-startTime).to_i puts "#{Time.now.strftime("%H:%M:%S")}: #{__FILE__} done. Took #{diff} seconds"
Version data entries
7 entries across 7 versions & 1 rubygems