Positional value parameters with name
Opened this issue · 0 comments
amer-flix commented
Hi,
I would like to provide the parameter name with positional value parameter.
Currently, if I pass the name it appends that name to the value.
Example:
php script.php build project=1 name=Test
Expected results
[
'project' => 1,
'name' => 'Test',
]
Actual results
[
'project' => 'project=1',
'name' => 'name=Test',
]
I know, I can add an optional parameter like [--project=1] and then add a check on code level. But I don't want to do this.
Is there any possibility we can achieve this?
Any help would be much appreciated.
Thanks