Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-02-28 04:06:36


Austin Bingham wrote:

>> I think I'll be able to implement this. OTOH, this will become
>> command-line specific. What if you want to parse --position from config
>> file:
>>
>> position=10:11:12:N 13:14:15:W
>>
>> in this case there are no separate token, the value is considered to be
>> one token. So probably, the best approach is to write your validator so
>> that it operates on a single string, and make program_options merge the
>> tokens. This way, the same validator will work both the command line and
>> config file.
>
> That's all sounds great to me. As long as I don't have to force my
> users to use extra quotes and stuff, I'm willing to do whatever is
> necessary in my validator.

So, syntax like

    --position="10:11:12:N 13:14:15:W"

is not acceptable for you, right? I though about it over weekend and now
find this syntax the best one. But anyway I'll think about allowing the
syntax you want too.

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net