tomykaira/clockwork — pull request #22 by fddayan (2013-02-22 14:46:21+00:00)
Title: Daemon arguments made available not requierning '-d'. Also, version.rb added.

`-h` prints help.
Clockwork runs as daemon if `-d` specified or the legacy way.

Legacy way;
`clockwork clock.rb`
No daemonize

Daemon way:
`clockwork -d -f clock.rb start`
`clockwork -d status`
`clockwork -d stop`
(uses deamon gem options, so pid might be specified)

`clockwork -v` to prints version number from `version.rb`

`clockwork -h` prints out:

Usage:clockwork
or
clockwork --daemon [options] start|stop|restart|run

-d, --daemon Daemonize clockwork.
--pid-dir=dir Alternate directory in which to store the process ids.
-i, --identifier=str An identifier for the process.
-l, --log Redirect both STDOUT and STDERR to a logfile named clockwork[.identifier].output in the pid-file directory.
--log-dir A specific directory to put the log files into (default location is pid directory).
-m, --monitor Start monitor process.
-f, --file= Clock file (only required when run with 'start').
-h, --help Show this message
-v, --version