From 0d3f5aa24fa963bbc5cff1e6698017993f2d6439 Mon Sep 17 00:00:00 2001 From: Sylvain Chapeland Date: Tue, 12 Jan 2021 14:51:32 +0100 Subject: [PATCH] exit immediately on help --- src/Daemon.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Daemon.cxx b/src/Daemon.cxx index 252e043..fd55293 100644 --- a/src/Daemon.cxx +++ b/src/Daemon.cxx @@ -70,6 +70,7 @@ void print_usage() printf(" Valid keys: isInteractive, idleSleepTime, userName, redirectOutput,\n"); printf(" logFile, logRotateMaxBytes, logRotateMaxFiles, logRotateNow.\n"); printf(" -h This help.\n"); + printf("\n"); } Daemon::Daemon(int argc, char* argv[], DaemonConfigParameters* dConfigParams) @@ -133,6 +134,7 @@ Daemon::Daemon(int argc, char* argv[], DaemonConfigParameters* dConfigParams) case 'h': { print_usage(); + return; } break; default: