Implement synopsis for help output
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 4 Feb 2014 18:41:19 +0000 (20:41 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Sun, 9 Feb 2014 12:38:13 +0000 (13:38 +0100)
commitbb2571099ccc537ef05348ff68333d4237a05253
tree5ecaf0b93ae86cb780c4b1b5b5919b845823a5b0
parentd6f5bc31bc33ebe57e6b7dd9e53e0d8d9fbb8d57
Implement synopsis for help output

Print all the options into the synopsis, for all the output formats
(console, man pages, and HTML).  Formatting is not the nicest possible,
but surely better than what it was (in wman.cpp, the synopsis is only
printed into the man pages, with no wrapping whatsoever).

Part of #969.

Change-Id: Ic09ac91b3d5b5e2d42d41b83935d54c894eb8e97
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesLongFileOptions.xml
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesLongOptions.xml
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesMultipleSections.xml
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesOptionTypes.xml
src/testutils/testoptions.cpp