Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-09-16 02:25:38


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk