Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function parse_environment

boost::program_options::parse_environment

Synopsis

// In header: <boost/program_options/parsers.hpp>


parsed_options 
(options_description &, 
                   name_mapper);

Description

Parse environment.

For each environment variable, the 'name_mapper' function is called to obtain the option name. If it returns empty string, the variable is ignored.

This is done since naming of environment variables is typically different from the naming of command line options.


PrevUpHomeNext