Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Program_options: Parsing arguments like "+a" possible?
From: boost_mailinglist_at_[hidden]
Date: 2011-08-08 06:22:30


Am 08.08.2011 08:18, schrieb Diederick C. Niehorster:
> What do you mean with the number of arguments is too much? do you want
> +a do have a different meaning than -a?
>
> I don't think thats possible...
>
> Best,
> Dee
>
> On Mon, Aug 8, 2011 at 09:15,<boost_mailinglist_at_[hidden]> wrote:
>> Hello,
>>
>> is it possible to parse also arguments like "+a" with the library "Boost.Program_options"? The numbers of arguments are simple to much to use only the "-" or the "--" as a sign for arguments.
>>
>> If it possible, how have I to activate this function?
>>
>> Thank you.
>>
>>
>> --
>> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
>> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

Yes, your interpretation is right.

The meaning of +a should be different of -a.

myapp -a returns as example "Hello world" and myapp +a should return
"Hello Boost community!".

If it not possible to use boost.program_options, is it the best solution
to build the own parser with boost.qi rules?

Thanks.


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