public addArg ( string $key, string | array | null $value = null, boolean | null $escape = null ) : static | ||
$key | string | the argument key to add e.g. `--feature` or `--name=`. If the key does not end with and `=`, the $value will be separated by a space, if any. Keys are not escaped unless $value is null and $escape is `true`. |
$value | string | array | null | the optional argument value which will get escaped if $escapeArgs is true. An array can be passed to add more than one value for a key, e.g. `addArg('--exclude', array('val1','val2'))` which will create the option `--exclude 'val1' 'val2'`. |
$escape | boolean | null | if set, this overrides the $escapeArgs setting and enforces escaping/no escaping |
Результат | static | for method chaining |