I may have found a bug, when you have a short argument that takes a value and you don't put a space between it and the value and you then have another argument that needs to take a value the error generated isn't correct.
$./a.out -l6
error: missing argument for 'l' in -l6
$./a.out -Fl6 --long 10
error: cannot parse '--long' as an integer
I see what is happening the parser is trying to convert '--long' to an int and that's not working. Is there a way to parse the value in this way or would it be possible to generate the error missing argument message rather that the cannot parse message?
I'm trying to replace argp and this project is spot on for my needs
I may have found a bug, when you have a short argument that takes a value and you don't put a space between it and the value and you then have another argument that needs to take a value the error generated isn't correct.
I see what is happening the parser is trying to convert '--long' to an int and that's not working. Is there a way to parse the value in this way or would it be possible to generate the error missing argument message rather that the cannot parse message?
I'm trying to replace argp and this project is spot on for my needs