Boost logo

Boost Users :

Subject: [Boost-users] [program options] an alternative for "add_options()" avail?
From: U.Mutlu (for-gmane_at_[hidden])
Date: 2015-02-14 23:01:46


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

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