Re: [Boost-users] program_options: wild write

22 Nov
2005
22 Nov
'05
12:15 p.m.
Pedro, graph_file is a positional parameter. So should it be added to the option_description list? By the way, in one run in which I provided one positional parameter on the command line, the code then recognized graph_file; but claimed it was an unknown option. [sigh...] Merrill

22 Nov
22 Nov
12:43 p.m.
New subject: program_options: wild write
Merrill Cornish wrote:
Pedro,
graph_file is a positional parameter. So should it be added to the option_description list?
Yes, how else would you specify the type of the value? positional_options_description only specifies translation from position on the command line to option name, the option still has to be registered. I've added a warning to the docs. - Volodya
7034
Age (days ago)
7034
Last active (days ago)
1 comments
2 participants
participants (2)
-
Merrill Cornish
-
Vladimir Prus