-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Negative argument values and optional variadic arguments / options. #93
Comments
i see, thanks for using it and also opening issues to make it better. regarding the main issue of negative value, my guess would be it is because and i like your proposal of variadic variadics, that would be awesome and welcome feature - however we need to double check if the braces |
btw could you please push your changes :) |
Great, I will push them shortly. Just need to add some tests and tidy my implementation. $this->newCommand()->option("--names [items...]")
// We fail miserably since we are not setting the short name of this option. Anyway it seems that any lack of a "short" definition will cause some troubles - I will fix that in the parse method of Option |
As far as I know, |
thank you very much. can't wait to have this feature implemented 🎉 |
Hi,
First and foremost, thank you for this fantastic project! While there are others out there, I really like this one since it's small, light, simple, and very flexible.
I am having trouble with negative values:
Usually, in some CLI programs, something like this would be evaluated correctly:
It seems that currently,
php-cli
doesn't support direct negative values unless I'm missing something (please correct me if I'm wrong).I modified the
Normalizer
and theParser
to support that if this is truly an issue let me know, and I can create a pull request.Also, as an artifact, now a syntax as follows is easily implemented:
I think it's Cool... and very useful.
Let me know if that's an acceptable improvement
The text was updated successfully, but these errors were encountered: