From 4721a7c2c81f377859ff97c472873e88a8ea38b6 Mon Sep 17 00:00:00 2001 From: Mathias Brodala Date: Thu, 7 Dec 2017 12:21:41 +0100 Subject: [PATCH] Document arguments for custom commands Custom commands support the same pattern to pass arbitrary arguments like the "run-script" Composer command. --- doc/articles/scripts.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/articles/scripts.md b/doc/articles/scripts.md index f81163a56..e5c9be0c6 100644 --- a/doc/articles/scripts.md +++ b/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 ` will pass `--filter ` 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