Boost logo

Boost Users :

Subject: Re: [Boost-users] [Program options] changing output format of options_description
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-08-13 09:51:03


Roman Shmelev wrote:

> 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..

Roman,

unfortunately, this is not possible now. You probably can hack your local copy
to unconditionally put a newline before description.

- Volodya


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