浏览代码

Merge pull request #6880 from mbrodala/patch-2

Document arguments for custom commands
Jordi Boggiano 7 年之前
父节点
当前提交
0a09886307
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      doc/articles/scripts.md

+ 4 - 0
doc/articles/scripts.md

@@ -210,6 +210,10 @@ simply running `composer test`:
 }
 ```
 
+Similar to the `run-script` command you can give additional arguments to scripts,
+e.g. `composer test -- --filter <pattern>` will pass `--filter <pattern>` along
+to the `phpunit` script.
+
 > **Note:** Before executing scripts, Composer's bin-dir is temporarily pushed
 > on top of the PATH environment variable so that binaries of dependencies
 > are easily accessible. In this example no matter if the `phpunit` binary is