Boost logo

Boost Users :

Subject: Re: [Boost-users] program option::force to suppy only short name
From: Andrei LIHU (andrei.lihu_at_[hidden])
Date: 2008-10-09 09:54:09


I tested myself because I was curious and indeed
 ("c,c","compress")
is the right solution.

2008/10/9 Bob Wilkinson <rwilkinson_at_[hidden]>:
> On Thu, Oct 09, 2008 at 05:01:18PM +0530, Lloyd wrote:
>> Hi,
>>
>> I am using boost program options library
>>
>> Can I supply only "short names"
>>
>> eg.
>>
>> options_desctiprion desc("sample");
>> desc.add_options()
>>
>> ("help,h","display help")
>> (",c","compress")
>> ;
>>
>> in the case of option "c" we don't want to allow the user to supply a
>> long name. Howe can we do this?
>>
>
> Hi Lloyd
>
> Just guessing. but what would
>
> ("c,c","compress")
>
> do?
>
> Bob
>
>> Thanks,
>> Lloyd
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Kind regards,
Andrei LIHU
--------------------
Soft NRG
C++ Software Developer
+40742545392

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