Skip to content

It would be helpful if repeating an option would collect all values instead of just the last value #31

Open
@mcrump001

Description

@mcrump001

With the following command:

command --myopt=value1 --myopt=value2

Calling:

$options->getOpt('myopt')

would return an array containing all values:

['value1', 'value2']

instead, it currently returns a string containing the last value:

'value2'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions