From e26b78ef86777d4c93b51f4b54ed9ce4ed3968d2 Mon Sep 17 00:00:00 2001 From: deserevi <deserevi@nptool> Date: Thu, 23 Dec 2010 20:36:17 +0000 Subject: [PATCH] * When calling "Simulation --help" or "Analysis --help", programs now exit. + exit(1) statement has been added in the DisplayHelp() method from the NPOptionManager class --- NPLib/Tools/NPOptionManager.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NPLib/Tools/NPOptionManager.cxx b/NPLib/Tools/NPOptionManager.cxx index 4d1262eca..92a9846b1 100644 --- a/NPLib/Tools/NPOptionManager.cxx +++ b/NPLib/Tools/NPOptionManager.cxx @@ -22,6 +22,8 @@ #include "NPOptionManager.h" +#include <cstdlib> + NPOptionManager* NPOptionManager::instance = 0 ; @@ -87,6 +89,9 @@ void NPOptionManager::DisplayHelp() cout << "\t --output -O <arg>\t \t \t \t \t \t Set arg as the Output File Name (output tree)" << endl ; cout << "\t --run -R <arg>\t \t \t \t \t \t \t Set arg as the run to read file list" << endl ; cout << endl << endl ; + + // exit current program + exit(1); } -- GitLab