| Class | Dctl::Command::RedirectibleCommand |
| In: |
lib/dctl/command.rb
|
| Parent: | SmartCommand |
# File lib/dctl/command.rb, line 24
24: def initialize
25: super
26: @stdin = $IN
27: @stdout = $OUT
28: @stderr = $ERR
29: options.separator "Options:"
30: options.on('-i', '--stdin FILE', "Use FILE as stdin when daemonized (default is '#{@stdin}').") { |@stdin| }
31: options.on('-o', '--stdout FILE', "Use FILE as stdout when daemonized (default is '#{@stdout}').") { |@stdout| }
32: options.on('-e', '--stderr FILE', "Use FILE as stderr when daemonized (default is '#{@stderr}').") { |@stderr| }
33: end