1
0
Fork 0

Merge pull request #6880 from mbrodala/patch-2

Document arguments for custom commands
pull/6895/merge
Jordi Boggiano 2017-12-16 22:19:44 +01:00 committed by GitHub
commit 0a09886307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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