#!/usr/bin/env ruby require "optparse" require "stairs" Stairs.configure do |config| OptionParser.new do |options| options.banner = "Usage: stairs [options]" options.on("--use-defaults", "Use defaults when available") do |value| config.use_defaults = value end end.parse! end # Load Rails environment if we're in Rails rails_application = File.expand_path("./config/application.rb") require rails_application if File.exists?(rails_application) Stairs::Runner.new.run!