More flexible handling of enum option descriptions.
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 21 Dec 2012 05:59:10 +0000 (07:59 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Thu, 7 Mar 2013 18:57:28 +0000 (20:57 +0200)
commitcd965ad62519264340211875aa7c776aeca3e58b
treec44172530e7dc13d0376e14c672a99cda8183086
parent3347654dc4d336719a9ee232e01ac591cac822b0
More flexible handling of enum option descriptions.

Instead of always appending the list of allowed values to the
description of enum options, expose the list through StringOptionInfo
and construct the final description in cmdlinehelpwriter.cpp.

This gives better control for printing the option lists in different
formats.  Also allows removal of AbstractOption::createDescription(),
streamlining the core option implementation slightly.

Prerequisite for #969.

Change-Id: I26494f79757ad6894f1930b1bff2f2c74cc26f9c
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/options/abstractoption.cpp
src/gromacs/options/abstractoption.h
src/gromacs/options/basicoptions.cpp
src/gromacs/options/basicoptions.h
src/gromacs/options/basicoptionstorage.h