Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Positional value parameters with name #43

Open
amer-flix opened this issue Mar 8, 2018 · 0 comments
Open

Positional value parameters with name #43

amer-flix opened this issue Mar 8, 2018 · 0 comments

Comments

@amer-flix
Copy link

amer-flix commented Mar 8, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant