Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mcrump001 opened this issue Dec 21, 2022 · 1 comment

Comments

@mcrump001
Copy link

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'

@mcrump001
Copy link
Author

Great library by the way - really like the minimal requirements!

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

No branches or pull requests

1 participant