[program_options] printing options summary

[This question is about Boost.program_options library.] When I want to print options summary (e.g., for --help) I do this: cout << optionsDesc where optionsDesc is: boost::program_options::options_description optionsDesc; The output is correct, but how to format it? It looks bad: --mode arg [must be set] [........] mode: 'f' to gener ate file, or 'x' to fix file, or 'p' to gen erate ... Option descriptions are too narrow, and some words are broken right in the middle. (There is a big gap here between "mode" and its description because other option names are quite long.) It would be nice to be able to print wider option descriptions or maybe option descriptions *below* option names and somewhat indented (instead of to the right). Are there any formatting options? Thanks! STF

"Stanislaw Findeisen"
[This question is about Boost.program_options library.] It would be nice to be able to print wider option descriptions or maybe option descriptions *below* option names and somewhat indented (instead of to the right).
I believe program_options in the latest boost release (1.42) has some of these features. Which version of boost are you using?

Chard wrote:
"Stanislaw Findeisen"
wrote in message news:4BC6FEF1.7050005@gemius.pl... [This question is about Boost.program_options library.] It would be nice to be able to print wider option descriptions or maybe option descriptions *below* option names and somewhat indented (instead of to the right).
I believe program_options in the latest boost release (1.42) has some of these features.
Are they documented? STF
participants (2)
-
Chard
-
Stanisław Findeisen