Sha256: 0f950945587d8123151921e21edc3efcb689ed5478b3b594b25a6ead89a73ff0

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require 'log_simulator'

timescale = 1.0

opts = OptionParser.new do |opts|
  opts.banner = "Usage: simulate [logfile path] [options]"

  opts.on('-t time',Float,'timescale. Default is 1.0') do |time|
    timescale = time
  end

  opts.on_tail('-h', '--help', 'Show this message') { puts opts; exit }
end

opts.parse!(ARGV)

filepath = ARGV.pop(ARGV.count)[0]
if filepath
  LogSimulator::PlusLogSimulator.start(filepath,timescale)
else
  puts opts.help
  exit 1
end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
log_simulator-0.0.7 bin/simulate
log_simulator-0.0.6 bin/simulate
log_simulator-0.0.5 bin/simulate