Opened 16 years ago
Closed 15 years ago
#749 closed Bugs (fixed)
Function name error in program_options documentation
Reported by: | ei2pi | Owned by: | Vladimir Prus |
---|---|---|---|
Milestone: | Component: | None | |
Version: | None | Severity: | Cosmetic |
Keywords: | Cc: |
Description
http://boost.org/doc/html/program_options/ howto.html#id2716386 There are two typos in the second (last) code block in "Allowing Unknown Options". 1. The function name collect_arguments should read collect_unrecognized. 2. The first parameter refers to parsed_options field name "option" rather than "options". So the following block vector<string> to_pass_further = collect_arguments(parsed.option, include_positional); should read as follows vector<string> to_pass_further = collect_unrecognized(parsed.options, include_positional);
Change History (1)
comment:1 by , 15 years ago
Resolution: | None → fixed |
---|---|
Severity: | → Cosmetic |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in CVS HEAD.