Don't need to pass multiple arguments as a string

`./bin/console run -- --e prod --port 8001` now works without wrapping
multiple arbitrary arguments within a string.
This commit is contained in:
Oliver Davies 2024-03-12 23:59:26 +00:00
parent f94736183e
commit d289a01f3a
6 changed files with 18 additions and 15 deletions

View file

@ -23,10 +23,13 @@ abstract class AbstractCommand extends Command
// ./bin/console install -- --no-dev
//
// And to set the port and environment for a Sculpin project, multiple
// arguments can be passed at once as a string:
// arguments can be passed at once:
//
// ./bin/console run -- '-e prod --port 8001'
$this->addArgument('*');
// ./bin/console run -- -e prod --port 8001
$this->addArgument(
mode: InputArgument::IS_ARRAY,
name: '*',
);
$this->addOption(
name: 'language',