Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/command_line_usage.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,19 @@ Options are:
[<tt>--no-deprecation-warnings</tt> (-X)]
Do not display the deprecation warnings.

== Environment Variables

[<tt>RAKEOPT</tt>]
Command line options can be specified in the <tt>RAKEOPT</tt>
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
<em>VAR</em>=<em>VALUE</em> will be added to the environment hash
<tt>ENV</tt> and may be tested in the Rakefile.