Преглед на файлове

Document arguments for custom commands

Custom commands support the same pattern to pass arbitrary arguments like the "run-script" Composer command.
Mathias Brodala преди 7 години
родител
ревизия
4721a7c2c8
променени са 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
 > **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