Boost logo

Boost Users :

Subject: [Boost-users] [Program options] changing output format of options_description
From: Roman Shmelev (rshmelev_at_[hidden])
Date: 2009-08-13 09:46:34


Hi!

I'm using boost::program_options and my program obtains many parameters.
When name or default value of param is long, I get smth like this while
trying to

cout << desc_obj;

fullname-of-important-file, f (=/fold1/fold2/fold3/file.ext) The description
                                                             if so narrow :(
                                                             And I wish if
                                                             it was like
                                                             this:

fullname-of-important-file, f (=/fold1/fold2/fold3/file.ext)
      The description is here. Such formatting is much more beautiful, IMHO.
[empty line?]
another-param (=value)
      Another long long long long description

Is there any way to do this? some switcher..



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