mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
puma/cli: support specifying STD{OUT,ERR} redirections and append mode
This commit is contained in:
parent
264dc0583c
commit
3c54c64c7a
1 changed files with 12 additions and 0 deletions
|
@ -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 <options> <rackup file>"
|
||||
|
||||
o.on_tail "-h", "--help", "Show help" do
|
||||
|
|
Loading…
Reference in a new issue