Skip to content

Commit 39452a3

Browse files
authored
Merge pull request #639 from ruby/rakeopt-doc
Added document for RAKEOPT
2 parents 15aa9ab + bc19b73 commit 39452a3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/command_line_usage.rdoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,19 @@ Options are:
153153
[<tt>--no-deprecation-warnings</tt> (-X)]
154154
Do not display the deprecation warnings.
155155

156+
== Environment Variables
157+
158+
[<tt>RAKEOPT</tt>]
159+
Command line options can be specified in the <tt>RAKEOPT</tt>
160+
environment variable. These options will be processed as if they
161+
were given on the command line. This is useful for setting default
162+
options that you want to use with every rake invocation.
163+
164+
For example, setting:
165+
export RAKEOPT="-s --trace"
166+
167+
would cause rake to run silently with tracing enabled by default.
168+
156169
In addition, any command line option of the form
157170
<em>VAR</em>=<em>VALUE</em> will be added to the environment hash
158171
<tt>ENV</tt> and may be tested in the Rakefile.

0 commit comments

Comments
 (0)