Make 'gmx -h' invariant wrt. provided options
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 7 Feb 2014 18:38:13 +0000 (20:38 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Sun, 9 Feb 2014 13:54:34 +0000 (14:54 +0100)
commit29049f6dee5d171362b49c637ffc2c4edb24878f
tree1f771504eafc2d63757b752cf9375817d746ba13
parent7d9eb7f6df318ece4f18e73700ad6dc3e6412330
Make 'gmx -h' invariant wrt. provided options

The help output no longer depends on what the user provided on the
command line.  To do this, initialize a separate copy of the options
holder for writing the help.  This decouples the module manager and the
actual help output a bit more.  Make the option holder implementation
shared through cmdlinemodulemanager-impl.h.

Change-Id: I82ea1e969c7d02eadcb2a9f519af30561cb19991
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinehelpmodule.h
src/gromacs/commandline/cmdlinemodulemanager-impl.h
src/gromacs/commandline/cmdlinemodulemanager.cpp