From 0b2f8b1cb916d1aadbe8de6695662af75fdeb2ae Mon Sep 17 00:00:00 2001 From: Mohnish G J Date: Mon, 16 Mar 2015 21:56:03 +0530 Subject: Adds an example of how to access the arguments passed to a custom rake task [ci skip] --- guides/source/command_line.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/source/command_line.md b/guides/source/command_line.md index 6f5a6b7957..d153e0bfa6 100644 --- a/guides/source/command_line.md +++ b/guides/source/command_line.md @@ -526,8 +526,8 @@ end To pass arguments to your custom rake task: ```ruby -task :task_name, [:arg_1] => [:pre_1, :pre_2] do |t, args| - # You can use args from here +task :task_name, [:arg_1] => [:prerequisite_1, :prerequisite_2] do |task, args| + argument_1 = args.arg_1 end ``` -- cgit v1.2.3