diff --git a/lib/puma/cli.rb b/lib/puma/cli.rb index f2ae9f39..de0e5e6c 100644 --- a/lib/puma/cli.rb +++ b/lib/puma/cli.rb @@ -410,6 +410,18 @@ module Puma @cli_options[:tag] = arg end + o.on "--redirect-stdout FILE", "Redirect STDOUT to a specific file" do |arg| + @cli_options[:redirect_stdout] = arg + end + + o.on "--redirect-stderr FILE", "Redirect STDERR to a specific file" do |arg| + @cli_options[:redirect_stderr] = arg + end + + o.on "--[no-]redirect-append", "Append to redirected files" do |val| + @cli_options[:redirect_append] = val + end + o.banner = "puma " o.on_tail "-h", "--help", "Show help" do