[program options] an alternative for "add_options()" avail?
Hi, I'm newbie to 'program options'. I just wanted to ask if there is an alternative for the below example from the online-doc: desc.add_options() ("help", "produce help message") ("compression", po::value<int>(), "set compression level") ; I would like to have something more traditional like the following single element addition alternative: desc.add_option("help", "produce help message"); desc.add_option("compression", po::value<int>(), "set compression level"); Is something like this already in the library? -- TIA Uenal
On Sat, Feb 14, 2015 at 10:01 PM, U.Mutlu
Hi, I'm newbie to 'program options'. I just wanted to ask if there is an alternative for the below example from the online-doc: desc.add_options() ("help", "produce help message") ("compression", po::value<int>(), "set compression level") ;
What's wrong with this form? When I worked with it, it took a little getting used to, but once you got past the syntax, it works just fine.
I would like to have something more traditional like the following single element addition alternative: desc.add_option("help", "produce help message"); desc.add_option("compression", po::value<int>(), "set compression level");
Is something like this already in the library?
Don't know.
-- TIA Uenal
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Michael Powell
-
U.Mutlu