-
Notifications
You must be signed in to change notification settings - Fork 68
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
The example code does not work as expected. #8
Comments
I agree. Would you be keen to help get it to a production-ready standard? I think we could do it over a few days. I believe the argument parsing is currently designed to be of the form:
But I think it would be good to accomodate the form you are talking about as well. We might be able to do string to numeric conversion by inspecing the |
It doesn't work even with |
I use this one instead, it works: https://github.com/Taywee/args |
Same failure with me |
alternatively, @hbristow could simply make the repository private or delete it so that maybe google will stop bringing people here. I've done this with my open projects which gather attention but I am not interested in maintaining. |
You can retrieve the value as a
You can also modify the retrieve method to something like this:
And then you can call |
For anyone who is interested, I have fixed the bug in 'retrieve' myself. |
For anyone who is interested, I have promote its fault tolerance, let it use easy. also format the code style of allman. base on: https://github.com/jiwoong-choi/argparse |
The example in the read me does not work, which is no surprise because I don't see how any code to convert strings to number types.
Input:
Expected output:
Observed output:
I normally would just move and and assume the project was broken, but it's the first result on google when you search "argparse C++", so I feel like it should be maintained and work as expected.
The text was updated successfully, but these errors were encountered: