|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-11-24 10:48:17
Caleb Epstein wrote:
>> I just don't see any solution to make unknown options work without either
>> -- requiring --something=10 format
>> -- requiring that all positional options are at the end
>
> What about the combination of (if some user-settable switch is thrown,
> but not by default):
>
> * allowing unknown options -- these are considered positional parameters
> * rearranging the argument list such that all positional parameters
> are moved to the end
>
> This way:
>
> program --unknown 42 --known-flag --known-arg value
>
> is handled as if it were (in standard UNIX command-line-ese):
>
> program --known-flag --known-arg value -- --unknown 42
Looks possible. I'll add this suggestion to my todo.
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk