p-ranav / argparse

Argument Parser for Modern C++
MIT License
2.59k stars 244 forks source link

Add argument name after 'Too few arguments' error #360

Closed rouault closed 3 months ago

rouault commented 3 months ago

If a non-positional argument doesn't get the number of required values, a generic "Too few arguments" error is generated, without its name, when it is not the last argument (but if it is the last argument, we get its name)