bin/launchagent in launch-agent-0.7.0 vs bin/launchagent in launch-agent-0.8.0
- old
+ new
@@ -5,19 +5,21 @@
require 'docopt'
program_name = File.basename($0)
doc =<<-EOS
Usage:
- #{program_name} [--env=<env>] (--daemon | --interval <sec>) [--wdir=<dir>] (<argument>...)
+ #{program_name} [--env=<env>] (--daemon | --interval <sec>) [--wdir=<dir>] [--stdout=<path>] [--stderr=<path>] (<argument>...)
#{program_name} -h | --help
Options:
-h --help Show this screen.
-v --version Show version information.
-e --env=<env> Additional environmental variables to be set before running the job. Can specify multiple value with comma. e.g. FOO=bar,BAR=baz
-w --wdir=<dir> Specify a directory to chdir(2) to before running the job
- -d --daemon Load as daemon. If it is set, --interval option is ignored.
+ -d --daemon Load as daemon. If it is set, --interval option is ignored
-i --interval=<sec> Causes the job to be started every N seconds
+ -o --stdout=<path> Specify what file should be used for data being sent to stdout when using stdio(3)
+ -r --stderr=<path> Specify what file should be used for data being sent to stderr when using stdio(3)
EOS
begin
options = Docopt::docopt(doc, :version => LaunchAgent::VERSION)