Handle wrapper binary options also for symlinks.
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 23 Jul 2013 04:08:19 +0000 (07:08 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 30 Jul 2013 04:10:42 +0000 (06:10 +0200)
commite45b119f0092dd2b90c3b3d89c4be7ad4d5fb2aa
tree9577d4430de6f4ad0d9d1d206cb2489c810245f9
parent828ad7f352d6a6193074b88fe8bd09b4336de046
Handle wrapper binary options also for symlinks.

Now the -quiet, -version, and -copyright options also work when the
binary is invoked through a symlink (so, e.g., g_angle -quiet suppresses
the startup headers).  They also work for the user tools, implemented
using the single-module wrapper.

Extended the command-line parser to support parsing only recognized
options and removing those from the command line while leaving the rest
untouched.

Related to #685 and #1209.

Change-Id: I740f70386d89694246c3e25ba0a1c1c4df17dc6b
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/commandline/cmdlineparser.cpp
src/gromacs/commandline/cmdlineparser.h
src/gromacs/commandline/tests/cmdlineparser.cpp
src/gromacs/options/optionsassigner.cpp
src/gromacs/options/optionsassigner.h
src/testutils/cmdlinetest.cpp
src/testutils/cmdlinetest.h