Refactor new help formatting implementation
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 4 Feb 2014 15:42:39 +0000 (17:42 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sun, 9 Feb 2014 12:37:26 +0000 (13:37 +0100)
commitd6f5bc31bc33ebe57e6b7dd9e53e0d8d9fbb8d57
tree34c711e516fd0e1a66f1ba6b6a001ae7b2e120fc
parent01109b5500fd4e22118d1627f7f5125c9f7c5479
Refactor new help formatting implementation

- Merge formatFileOption() and formatOption() into one.
- Remove unnecessary generality by splitting description formatting into
  its own class, and make OptionsFilter only do option filtering.  All
  output handling is now in OptionsListFormatter (which was renamed from
  OptionsExportFormatter).
- Split formatting basic option name and value placeholders into a
  separate function.

There should be no functional change.  Preparation for a proper synopsis
implementation.

Part of #969.

Change-Id: I900883eb39853ed67d5f6177ae06847283348d9e
src/gromacs/commandline/cmdlinehelpwriter.cpp