Modify

Opened 11 years ago

Closed 10 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);

Attachments (0)

Change History (1)

comment:1 Changed 10 years ago by Vladimir Prus

Resolution: Nonefixed
Severity: Cosmetic
Status: assignedclosed

Fixed in CVS HEAD.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Vladimir Prus.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.