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

Positional value parameters with name #43

@amer-flix

Description

@amer-flix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions