Opened 16 years ago
Closed 15 years ago
#748 closed Bugs (fixed)
Parameter reversal 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
The first code block in "Allowing Unknown Options" has
the following example code snippet:
parsed_options parsed =
command_line_parser(argv,
argc).options(desc).allow_unregistered().run();
The prototype for command_line_parser calls for argc
first, then argv. This suggests the example should
read:
parsed_options parsed =
command_line_parser(argc,
argv).options(desc).allow_unregistered().run();
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.