24 Feb
2005
24 Feb
'05
3:13 p.m.
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. Austin