#!/usr/bin/env ruby require "vegas" require "mongo_browser" Vegas::Runner.new(MongoBrowser::Application, "mongo_browser") do |runner, opts, app| opts.on("--mongodb-port PORT", "Specify mongodb port") do |port| runner.logger.info "Using mongodb port #{port}" MongoBrowser.mongodb_port = port.to_i end opts.on("--mongodb-host HOST", "Specify mongodb host") do |host| runner.logger.info "Using mongodb host #{host}" MongoBrowser.mongodb_host = host.to_i end end