| Class | DaemonKit::Arguments |
| In: |
lib/daemon_kit/arguments.rb
|
| Parent: | Object |
A wrapper around OptParse for setting up arguments to the daemon process.
TODO: Set rules for basic options that go for all daemons TODO: Load options from config/arguments.rb
| commands | [R] | |
| default_command | [R] | |
| options | [R] | |
| parser_available | [RW] |
Extracts any values for arguments matching ’—config’ as well as some implication arguments like ’-e’. Returns an array with the configs as the first value and the remaing args as the last value.
To set a value on the default Configuration instance, use the following notation:
--config attribute=value
The above notation can be used several times to set different values.
Special, or ‘normal’ arguments that are mapped to the default Configuration instance are listed below:
-e value or --env value => environment --pid pidfile => pid_file -l path or --log path => /path/to/log/file
Parse the argument values and return an array with the command name, config values and argument values