|
Boost Users : |
From: Christian Henning (chhenning_at_[hidden])
Date: 2005-11-21 18:14:38
Hi Merrill, before you commit suicide, what's the exception message?
Can you try this:
unsigned int nLimit = 1;
desc.add_options()
("help,h", " Display this help message.")
("version", " Display the version... .")
("limit", po::value<unsigned int>( &nLimit )->default_value(1),
" This is the concurrency limit ...") );
Note the use of a local variable "nLimit" that gets the limit value
from the command line.
Greets,
Christian
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net