Sha256: ab9f9d02ded63506263b4cd709f8e9843de65e5a847ab99bd2cf93f182023c80
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
#!/usr/bin/ruby -s require 'optparse' $outfile = 'meta.sqm' opts = OptionParser.new do |op| op.banner = "usage: #{File.basename(__FILE__)} <file>.sqt ..." op.separator "outputs meta.sqm (a sqt meta file)" op.on("-o", "--outfile <file>", "currently: #{$outfile}") {|v| $outfile = v} end opts.parse! if ARGV.size == 0 puts opts.to_s exit end File.open($outfile, 'w') do |out| ARGV.each do |file| out.puts File.expand_path(file) end end
Version data entries
6 entries across 6 versions & 1 rubygems