Fix HTML help and man pages for commands with dashes
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 10 Jul 2014 03:39:59 +0000 (06:39 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 16 Jul 2014 04:08:13 +0000 (06:08 +0200)
commitc106351b9cd71a173ac687e03c3c334fc9593b2e
tree971a9dc57687d87e7cfd078b6b47de86f26dd519
parent8dc593f87d9def8b87491ecd84102e869c4fe698
Fix HTML help and man pages for commands with dashes

Replace one case of "gmx-something" to "gmx something" conversion with
explicit construction of the latter from its component parts.
The other instance does not (easily) have the component parts available,
so only the first dash is removed when converting between
"gmx-something" and "gmx something". Add an assert for the condition
that this requires to remain functional.

Change-Id: I5bfbd1acae440af93b3b7b50a25d8782a7e60c8a
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinemodulemanager.cpp