class Puma::CLI

def initialize(argv, events=Events.stdio)


this object will report status on.
+stdout+ and +stderr+ can be set to IO-like objects which

arguments.
Create a new CLI object using +argv+ as the command line
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