...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::program_options::parse_environment
// In header: <boost/program_options/parsers.hpp> BOOST_PROGRAM_OPTIONS_DECL parsed_options parse_environment(const options_description &, const char * prefix);
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This function exists to resolve ambiguity between the two above functions when second argument is of 'char*' type. There's implicit conversion to both function1 and string.