Move -debug to cmdlinemodulemanager.cpp
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 21 Jun 2014 04:48:31 +0000 (07:48 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 8 Jul 2014 10:39:20 +0000 (12:39 +0200)
commitb322bc098cd2543d82ee6045dff9f4a7016a4624
tree282d9b9ade1808888f8ae935d89361132fb7d2fa
parent00596e7c45ba75e7922c3af101cd5541525fe15a
Move -debug to cmdlinemodulemanager.cpp

Now the option can be used uniformly even for tools that do not call
parse_common_args().  The description is still mdrun-specific, though.
While at it, made it work without an explicit debug level: if only
-debug is provided without any value, the debug level defaults to 1.
Also made -hidden work for 'gmx -h', as there now is a hidden option
there.

Renamed some associated functions to start with a gmx_ prefix, and
reorder things in fatalerror.* so that debugging code is in a single
block, and functions are in the same order in both files.

Removed unused debug_level from oenv.  This probably needs a better
mechanism to control what is written to the debugging output.

Change-Id: I1526916356b545c56d9f601f121e6c4e581639eb
12 files changed:
src/gromacs/analysisdata/modules/plot.cpp
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinemodulemanager-impl.h
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/commandline/pargs.cpp
src/gromacs/gmxlib/oenv.cpp
src/gromacs/legacyheaders/oenv.h
src/gromacs/trajectoryanalysis/runnercommon.cpp
src/gromacs/utility/fatalerror.cpp
src/gromacs/utility/fatalerror.h
src/gromacs/utility/futil.cpp
src/gromacs/utility/futil.h