
16 Sep
2004
16 Sep
'04
7:25 a.m.
Hi Leo,
The exception is where an incorrect argument to an option has been supplied
e.g. --some_arg "abc" where --some_arg 0.6 is expected.
The error message is annoyingly non-descript and it can be difficult to figure out which particular optional argument has been mis-specified.
I've committed a change which cause the error message to look like: error: in option 'compression': invalid option value 'foo' what do you think? Then only problem is the case where an option has a short version: if you run ./first -c foo then the error message will be exactly the same, which requires the user to mantally link "-c" to "compression". Do you think it's a problem? Thanks for bringing up this issue! - Volodya