zfcampus / zf-console

Create console applications in PHP
BSD 3-Clause "New" or "Revised" License
64 stars 25 forks source link

Positional value parameters with name #43

Open amer-flix opened 6 years ago

amer-flix commented 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

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