program_options positional options and help message

Hi, I'm just discovering po, and I wonder how to achieve the following: I want that the help message that I produce by streaming my options description to standard output also mentions the positional options, in the way that the traditional 'usage:' message does: usage: $PROG [options] FILE1 FILE2 ... Is it possible to do somethink like that? Am I clear? Curiously, Nowhere man -- nowhere.man@levallois.eu.org OpenPGP 0xD9D50D8A

This can be as easy as:
po::options_description desc("Options");
std::cout << desc << "\n" << " FILE1 FILE2 ..." std::endl;
Chris
On 5/30/06, Pierre THIERRY
Hi,
I'm just discovering po, and I wonder how to achieve the following: I want that the help message that I produce by streaming my options description to standard output also mentions the positional options, in the way that the traditional 'usage:' message does:
usage: $PROG [options] FILE1 FILE2 ...
Is it possible to do somethink like that? Am I clear?
Curiously, Nowhere man -- nowhere.man@levallois.eu.org OpenPGP 0xD9D50D8A
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Chris Weed
-
Pierre THIERRY