From c466623e8661ed273dfccb65ef5e1cb590084147 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Fri, 21 Jun 2019 17:38:49 +0200 Subject: [PATCH] fix --- slsDetectorSoftware/include/multiSlsDetectorClient.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slsDetectorSoftware/include/multiSlsDetectorClient.h b/slsDetectorSoftware/include/multiSlsDetectorClient.h index 054f7866b..ba924f199 100755 --- a/slsDetectorSoftware/include/multiSlsDetectorClient.h +++ b/slsDetectorSoftware/include/multiSlsDetectorClient.h @@ -5,10 +5,10 @@ #include "CmdLineParser.h" #include "CmdProxy.h" #include "container_utils.h" -#include "string_utils.h" #include "multiSlsDetector.h" #include "slsDetectorCommand.h" #include "sls_detector_exceptions.h" +#include "string_utils.h" #include #include @@ -30,14 +30,14 @@ class multiSlsDetectorClient { if (parser.isHelp()) action_ = slsDetectorDefs::HELP_ACTION; runCommand(); - } multiSlsDetectorClient(const std::string &args, int action, multiSlsDetector *myDetector = nullptr, std::ostream &output = std::cout) : action_(action), detPtr(myDetector), os(output) { parser.Parse(args); - action_ = slsDetectorDefs::HELP_ACTION; + if (parser.isHelp()) + action_ = slsDetectorDefs::HELP_ACTION; runCommand(); }