#!/usr/bin/env ruby require 'optparse' require 'log_simulator' timescale = 1.0 OptionParser.new do |opts| opts.banner = "Usage: Debug Socket [options]" opts.on('-t time',Float,'timescale') do |time| timescale = time end opts.on_tail('-h', '--help', 'Show this message') { puts opts; exit } end.parse!(ARGV) filepath = ARGV.pop(ARGV.count)[0] if filepath LogSimulator::PlusLogSimulator.start(filepath,timescale) else puts 'Specify file path' end