Skip to content

Commit

Permalink
Merge pull request #42 from sy-c/master
Browse files Browse the repository at this point in the history
Daemon: exit immediately on help
  • Loading branch information
sy-c authored Jan 12, 2021
2 parents fa7ecee + 0d3f5aa commit 3006dfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Daemon.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -133,6 +134,7 @@ Daemon::Daemon(int argc, char* argv[], DaemonConfigParameters* dConfigParams)

case 'h': {
print_usage();
return;
} break;

default:
Expand Down

0 comments on commit 3006dfe

Please sign in to comment.