nategood / commando

An Elegant CLI Library for PHP
MIT License
798 stars 80 forks source link

Unable to parse option values that start with '-', e.g. negative numbers #115

Closed manticorp closed 4 months ago

manticorp commented 1 year ago

It is impossible to pass negative numerical values to the parser - it results in the following errors:

ERROR: Unable to parse option -112.45470: Invalid syntax

pbarney commented 6 months ago

I see that you forked it and modified it to accept negative numbers. Just pointing it out for anyone who ends up here.