Boost logo

Boost Users :

Subject: Re: [Boost-users] problems with program_opsitons::parse_environment can't figure out how to do what I want.
From: Caleb Cushing (xenoterracide_at_[hidden])
Date: 2009-10-02 16:17:43


> So, the HOME environmental is getting stored in the variable map under an
> empty key, if at all.
>
> I'm not sure how to fix it though.  Maybe something like using "HOM" as the
> string for parse environment and "e" for the option name.  Or you can use
> the other form of parse_environment that takes a function that maps
> variable names to option names.
> <http://www.boost.org/doc/libs/1_40_0/doc/html/boost/program_options/parse_environment_id914437.html>

oh.... I misread the docs... I didn't realized it used the non prefix
for the option name. guess I'll have to use getenv then since using
HOM and e would be a horrible coding style. It's obvious this wasn't
designed to use existing env variables.

-- 
Caleb Cushing
http://xenoterracide.blogspot.com

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