Boost logo

Boost Users :

From: Andy Schlaikjer (hazen_at_[hidden])
Date: 2006-08-03 17:29:26


Hi all,

I have an option in my options_description which has a very long default
value (an absolute pathname to a data file). When I print out the usage
info via:

cout << desc << endl;

..the formatting of the message is really bad; The long default value
makes the option description text get squished to the far right:

Allowed options:

   -h [ --help ] produce
                                                 help
                                                 message
   -v [ --version ] print
                                                 version
                                                 string
   -D [ --database-file ] arg (=/very/long/path) specify
                                                 databas
                                                 e filen
                                                 ame

Is there any way to affect the formatting of the description? Perhaps
force any default value to be printed underneath the option itself, or
not require the description text for all options align on the same column?

Thanks,
Andy


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