|
Boost Users : |
Subject: Re: [Boost-users] [program_options] Parsing config files
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2013-08-08 15:46:36
I stand corrected. It works! Was a stuck-ness in a static library of
ours. I cleaned and rebuilt that and now it works.
Sorry for any confusion...
On Thu, Aug 8, 2013 at 2:02 PM, Michael Powell <mwpowellhtx_at_[hidden]> wrote:
> ...
>
> On Thu, Aug 8, 2013 at 11:37 AM, Michael Powell <mwpowellhtx_at_[hidden]> wrote:
>> Works like a champ!
>>
>> Last question I think: when it comes to prioritizing options
>> preference, I'd like to prefer command line over configuration file:
>> in other words, give the end-user an opportunity to override the
>> configuration file on the command line.
>>
>> So, to do this, first parse the configuration file? Then parse the
>> command line? Or vice versa?
>
> Doesn't seem to matter which order I put them in. The configuration
> file always wins. I'd rather it was the command line that wins.
>
> Interesting, and somewhat expected, that when I specify a mutually
> exclusive set of options, the process runs and parses and responds to
> the options as expected.
>
> Anyone?
>
> Thank ye...
>
>> Thank you...
>>
>> On Thu, Aug 8, 2013 at 11:35 AM, Michael Powell <mwpowellhtx_at_[hidden]> wrote:
>>> Great. Thank ye sir!
>>>
>>> On Thu, Aug 8, 2013 at 11:30 AM, Rhys Ulerich <rhys.ulerich_at_[hidden]> wrote:
>>>>> How about for non-value type options: i.e. the key just exists.
>>>>>
>>>>> For instance, "--some-time-out 1000" works well. However, what about
>>>>> for "--simple-flag" ?
>>>>>
>>>>> So far I seem to be getting parse errors...
>>>>
>>>> This bit me too. IIRC, 'simple-flag=' with no value.
>>>>
>>>> - Rhys
>>>> _______________________________________________
>>>> Boost-users mailing list
>>>> Boost-users_at_[hidden]
>>>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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