Options for controlling startup output.
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 4 Jul 2013 19:27:17 +0000 (22:27 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 20 Jul 2013 17:53:49 +0000 (19:53 +0200)
commite6879f39d9cac75a6f80a527696e0a4f7dcb5d6b
treeb8a52df11ebc6b08bd33df6e4c25386587fd2093
parentb100cf46674f0331dfef62eed4d8aed740a5878e
Options for controlling startup output.

Add a -quiet option to the wrapper binary.  This option suppresses all
startup headers and the gmx_thanx() call in the end.  Restructure
CommandLineModuleManager::run() to avoid multiple paths that all need to
call gmx_thanx() and potentially also print the startup header.

Make -quiet suppress the startup header also in parse_common_args().
Reordering required by this causes invalid command-line option error
messages to be printed before the header gets printed, but this only
affects those few binaries that don't go through the wrapper binary.

Make gmx_print_version_info() callable through printBinaryInformation(),
and do this in the wrapper binary and in parse_common_args() in
response to -version.

Print the copyright in response -copyright in the wrapper binary.  Easy
to add to parse_common_args() as well, but even better would be to merge
the remaining few programs into the wrapper binary.

Part of #1209.

Change-Id: I0c7dddc91065b12f347da12acd82047e2d94b44c
cmake/BuildManPages.cmake
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/gmxlib/copyrite.cpp
src/gromacs/gmxlib/statutil.cpp
src/gromacs/legacyheaders/copyrite.h