Allow runAsMainSingleModule to be called more than once
[alexxy/gromacs.git] / src / programs / gmx.cpp
index 74c409b32bee16dc43c08fdd7125d8fac2d0a6a0..94a668eadb5d45e1ff0990dcf9deb890d2ece3b4 100644 (file)
@@ -39,8 +39,8 @@
  */
 #include "gmxpre.h"
 
-#include "gromacs/commandline/cmdlinemodulemanager.h"
 #include "gromacs/commandline/cmdlineinit.h"
+#include "gromacs/commandline/cmdlinemodulemanager.h"
 #include "gromacs/selection/selhelp.h"
 #include "gromacs/trajectoryanalysis/modules.h"
 #include "gromacs/utility/exceptions.h"
@@ -64,6 +64,6 @@ main(int argc, char *argv[])
     catch (const std::exception &ex)
     {
         gmx::printFatalErrorMessage(stderr, ex);
-        return gmx::processExceptionAtExit(ex);
+        return gmx::processExceptionAtExitForCommandLine(ex);
     }
 }