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

Option as string starting with zero is converted to number #90

Open
jpbecotte opened this issue Oct 21, 2016 · 1 comment
Open

Option as string starting with zero is converted to number #90

jpbecotte opened this issue Oct 21, 2016 · 1 comment

Comments

@jpbecotte
Copy link

I have an option declared as string but the parser converts it to a number.

command -option 01234

01234 is then converted to 1234 which is causing problems.

@fxa
Copy link

fxa commented Dec 12, 2016

even worse, if you have long strings containing digits only, it will be converted to a number:
command -option "123456789012345678901234567890"
will be converted to 1.2345678901234568e+29
and
command -option "12345678901234567890"
will be converted to 12345678901234567000

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

2 participants