program option::force to suppy only short name
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? Thanks, Lloyd ______________________________________ Scanned and protected by Email scanner
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
I tested myself because I was curious and indeed
("c,c","compress")
is the right solution.
2008/10/9 Bob Wilkinson
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Kind regards, Andrei LIHU -------------------- Soft NRG C++ Software Developer +40742545392
Hi Bob, Thank you very much. You gave a me a good solution. Regards, Lloyd On Thu, 2008-10-09 at 14:29 +0100, Bob Wilkinson wrote:
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
______________________________________ Scanned and protected by Email scanner
participants (3)
-
Andrei LIHU
-
Bob Wilkinson
-
Lloyd