
2 Oct
2009
2 Oct
'09
8:17 p.m.
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_en...
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