Improve file name option help
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 20 Jan 2014 19:17:42 +0000 (21:17 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 21 Jan 2014 03:42:28 +0000 (04:42 +0100)
commit5bb0f5d8098cb7d4aca47300f2280af535a04a39
treedcd21b5c061611639fb2ab233aa7bfaabffb3819
parent4fae098d5bdf6799e939ec5f906438f8742b8f1b
Improve file name option help

- Add brackets for cases where the file name is actually optional.
- Add [...] for cases where multiple file names can be specified.

As supporting changes, extend the options machinery to be able to get
this information for the options, and fix an issue in the table
formatter that was causing some ugly formatting.

Related to #969.

Change-Id: I5b38d7ac6d7c58c3decce64ddfe60fff0a5797ed
12 files changed:
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/commandline/tests/cmdlinehelpwriter.cpp
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesLongFileOptions.xml
src/gromacs/commandline/tests/refdata/CommandLineHelpWriterTest_HandlesOptionTypes.xml
src/gromacs/onlinehelp/helpformat.cpp
src/gromacs/onlinehelp/tests/helpformat.cpp
src/gromacs/onlinehelp/tests/refdata/TextTableFormatterTest_HandlesOverflowingLines.xml
src/gromacs/options/abstractoption.cpp
src/gromacs/options/abstractoption.h
src/gromacs/options/abstractoptionstorage.h
src/gromacs/options/optionflags.h
src/gromacs/options/optionstoragetemplate.h