in lib/puma/cli.rb [31:72]
def initialize(argv, events=Events.stdio)
@debug = false
@argv = argv.dup
@events = events
@conf = nil
@stdout = nil
@stderr = nil
@append = false
@control_url = nil
@control_options = {}
setup_options
begin
@parser.parse! @argv
if file = @argv.shift
@conf.configure do |user_config, file_config|
file_config.rackup file
end
end
rescue UnsupportedOption
exit 1
end
@conf.configure do |user_config, file_config|
if @stdout || @stderr
user_config.stdout_redirect @stdout, @stderr, @append
end
if @control_url
user_config.activate_control_app @control_url, @control_options
end
end
@launcher = Puma::Launcher.new(@conf, :events => @events, :argv => argv)
end