Modify

Opened 11 years ago

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


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.