#!/usr/bin/env ruby require "optparse" require "lib/miranda/system/load" system = RUBY_PLATFORM if system.include? "darwin" platform = "linux" elsif system.include? "linux" platform = "linux" else puts "Miranda supported is only mac and linux platforms !" end MirandaLoad::Load.new(platform) port = 4000 opt = OptionParser.new opt.on('-p VAL') do |p| port = p end opt.parse! puts "Miranda Started !" require "app.rb" Miranda::System.run! :port => port