Opened 15 years ago
Last modified 11 years ago
#1125 reopened Feature Requests
parse_config_file should be mentioned in the How To
Reported by: | Owned by: | Vladimir Prus | |
---|---|---|---|
Milestone: | To Be Determined | Component: | program_options |
Version: | Boost 1.34.1 | Severity: | Problem |
Keywords: | Cc: |
Description
Hi,
po::store(po::parse_config_file(is, desc), vm);
The very useful parse_config_file function should be mentioned in the How To and in the examples.
Change History (9)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
But IMO the config file is more important and useful than the response file, so it seems a bit weird to have a how to for the response files but not for the config files.
comment:3 by , 15 years ago
I see parse_config_file being mentioned only once in the multiple sources sample and that's in text, not in code.
comment:4 by , 15 years ago
Here part of multiple_sources.cpp:
store(parse_config_file(ifs, config_file_options), vm);
so clearly it is used in the code. Am I missing something?
comment:5 by , 15 years ago
Howto, almost by definition, is for relatively arcane usages, not the baseline usage.
comment:6 by , 15 years ago
so clearly it is used in the code. Am I missing something?
But that part isn't shown in the web page itself, is it?
Howto, almost by definition, is for relatively arcane usages, not the baseline usage.
That's fine, provided the baseline usage is also clearly explained. :)
comment:7 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 by , 11 years ago
Replying to Olaf van der Spek <OlafvdSpek@…>:
Hi,
po::store(po::parse_config_file(is, desc), vm);
The very useful parse_config_file function should be mentioned in the How To and in the examples.
The boost 1.48 examples doesn't show this function and it should. It mentions it but the example isn't listed.
comment:9 by , 11 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
The multiple_sources example uses parse_config_file already. I'm not sure adding parse_config_file to howto makes sense, given that howtos are for specific tips and tricks. I agree that the list of possible sources is not very apparent, and this is something to be fixed.