def configure
options [
["-e", "--environment ENV", "Rails environment to run as", :@environment, nil],
['-p', '--port PORT', "Starting port to bind to", :@port, 3000],
['-a', '--address ADDR', "Address to bind to", :@address, nil],
['-l', '--log FILE', "Where to write log messages", :@log_file, "log/mongrel.log"],
['-P', '--pid FILE', "Where to write the PID", :@pid_file, "tmp/pids/mongrel.pid"],
['-c', '--chdir PATH', "Change to dir before starting (will be expanded)", :@cwd, nil],
['-o', '--timeout TIME', "Time to wait (in seconds) before killing a stalled thread", :@timeout, nil],
['-t', '--throttle TIME', "Time to pause (in hundredths of a second) between accepting clients", :@throttle, nil],
['-m', '--mime PATH', "A YAML file that lists additional MIME types", :@mime_map, nil],
['-r', '--root PATH', "Set the document root (default 'public')", :@docroot, nil],
['-n', '--num-procs INT', "Number of processor threads to use", :@num_procs, nil],
['-B', '--debug', "Enable debugging mode", :@debug, nil],
['-S', '--script PATH', "Load the given file as an extra config script.", :@config_script, nil],
['-N', '--num-servers INT', "Number of Mongrel servers", :@servers, 2],
['-C', '--config PATH', "Path to cluster configuration file", :@config_file, "config/mongrel_cluster.yml"],
['', '--user USER', "User to run as", :@user, nil],
['', '--group GROUP', "Group to run as", :@group, nil],
['', '--prefix PREFIX', "Rails prefix to use", :@prefix, nil]
]
end