Skip to content

Commit

Permalink
Merge pull request #143 from htanata/remove_mention_of_environment_ar…
Browse files Browse the repository at this point in the history
…gument

Remove mention of environment variables as task argument.
  • Loading branch information
drbrain authored Jun 22, 2016
2 parents 7520a18 + 04d48a4 commit 57fa11d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/rakefile.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ behaviour can now accept a second parameter:
The first argument of the block "t" is always bound to the current
task object. The second argument "args" is an open-struct like object
that allows access to the task arguments. Extra command line
arguments to a task are ignored. Missing command line arguments are
picked up from matching environment variables. If there are no
matching environment variables, they are given the nil value.
arguments to a task are ignored.

If you wish to specify default values for the arguments, you can use
the with_defaults method in the task body. Here is the above example
Expand Down

0 comments on commit 57fa11d

Please sign in to comment.