1
0
Fork 0

Document arguments for custom commands

Custom commands support the same pattern to pass arbitrary arguments like the "run-script" Composer command.
pull/6880/head
Mathias Brodala 2017-12-07 12:21:41 +01:00 committed by GitHub
parent ed20b3b4f6
commit 4721a7c2c8
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 > **Note:** Before executing scripts, Composer's bin-dir is temporarily pushed
> on top of the PATH environment variable so that binaries of dependencies > 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 > are easily accessible. In this example no matter if the `phpunit` binary is