use*_*729 5 ruby rake ruby-on-rails rake-task
是否有针对个别佣金任务的标准帮助命令?
rake -h 显示rake的选项.
rake -D 描述了rake任务.
rake mytask 运行mytask.
是否有类似的东西rake -h mytask会描述mytask,并列出其可选和/或必需的参数?
例如,以下代码将在rails中运行单个测试:
rake test TEST=path_to_test
Run Code Online (Sandbox Code Playgroud)
如何发现TEST = path_to_test是rake test的可选参数?
该命令rake -D test不适用于我的系统。相反,你可以使用
# list test command with details
rake test -D
# list all test tasks with description
rake test -T
# list all test tasks even without description(Recommened)
rake test -T -A
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2397 次 |
| 最近记录: |