Skip to content

Commit

Permalink
exit immediately on help
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-c committed Jan 12, 2021
1 parent fa7ecee commit 0d3f5aa
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 0d3f5aa

Please sign in to comment.