Argv::Argv(const std::string& defaultdesc,bool helpopt,const std::string& helpdesc) :m_status(PARSE_INIT) ,m_curidx(0) { #ifdef BOOST_PO std::shared_ptr<boost::program_options::options_description> unnamed(new boost::program_options::options_description(defaultdesc)); m_options.push_back(std::make_pair(unnamed,true)); if (helpopt) { addBoolOption("help,h",helpdesc); } #endif }
bool Polylists2lines::init() { addBoolOption( "verbose", "verbose", "verbose", true); return true; }