diff --git a/doc/command_line_usage.rdoc b/doc/command_line_usage.rdoc index 105d6c8e9..c1ff39d5b 100644 --- a/doc/command_line_usage.rdoc +++ b/doc/command_line_usage.rdoc @@ -153,6 +153,19 @@ Options are: [--no-deprecation-warnings (-X)] Do not display the deprecation warnings. +== Environment Variables + +[RAKEOPT] + Command line options can be specified in the RAKEOPT + environment variable. These options will be processed as if they + were given on the command line. This is useful for setting default + options that you want to use with every rake invocation. + + For example, setting: + export RAKEOPT="-s --trace" + + would cause rake to run silently with tracing enabled by default. + In addition, any command line option of the form VAR=VALUE will be added to the environment hash ENV and may be tested in the Rakefile.