Skip to content

Commit 3006dfe

Browse files
authored
Merge pull request #42 from sy-c/master
Daemon: exit immediately on help
2 parents fa7ecee + 0d3f5aa commit 3006dfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Daemon.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ void print_usage()
7070
printf(" Valid keys: isInteractive, idleSleepTime, userName, redirectOutput,\n");
7171
printf(" logFile, logRotateMaxBytes, logRotateMaxFiles, logRotateNow.\n");
7272
printf(" -h This help.\n");
73+
printf("\n");
7374
}
7475

7576
Daemon::Daemon(int argc, char* argv[], DaemonConfigParameters* dConfigParams)
@@ -133,6 +134,7 @@ Daemon::Daemon(int argc, char* argv[], DaemonConfigParameters* dConfigParams)
133134

134135
case 'h': {
135136
print_usage();
137+
return;
136138
} break;
137139

138140
default:

0 commit comments

Comments
 (0)