提交 017415ed 编写于 作者: A Abdelkader Boudih

Merge pull request #19357 from boddhisattva/custom_rake_task_with_args_example

Adds more clarity on how to use custom rake tasks with arguments passed to it [ci skip]
......@@ -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
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册