Boost logo

Boost Users :

From: Ian McCulloch (ianmcc_at_[hidden])
Date: 2006-09-20 00:24:56


Ed Johnson wrote:

> Hi,
>
> Is it possible to generate a description in the following format using
> program_options?
>
[...]

I was in the process of writing a message asking for something similar, when
I saw this ;)

I was only thinking about the location of the default value though, instead
of
  -t [ --min-trunc ] arg (=1.77635683940025e-15) Minimum desired truncation
                                                 error per site of the
                                                 effective basis
I am putting the default as part of the description text:
  -t [ --min-trunc ] arg Minimum desired truncation error per site
                                 of the effective basis [default
                                 1.77635683940025e-15]

but a way to achieve this automatically would be great. Also, an overload
of options_description_easy_init::operator() that takes a std::string as
the last parameter would be really useful, save having to use .c_str()
ugliness.

By the way, there was never any response to the query at
http://thread.gmane.org/gmane.comp.lib.boost.user/21083/focus=21084
concerning multiple boolean switches. If no one else does first sometime
I'll get around to trying the solution I suggested in the root mail (a new
class derived from value_semantic) - but I'm not even sure if that is the
correct way to achieve it.

Regards,
Ian


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