Open amer-flix opened 6 years ago
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
[ 'project' => 1, 'name' => 'Test', ]
[ '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
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:
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