cmdline: log to stdout if -h or --help was used
This commit is contained in:
parent
50a741cf65
commit
d99e530134
@ -623,6 +623,7 @@ std::unique_ptr<nsjconf_t> parseArgs(int argc, char *argv[]) {
|
||||
nsjconf->tlimit = (uint64_t)strtoull(optarg, NULL, 0);
|
||||
break;
|
||||
case 'h': /* help */
|
||||
logs::logFile("", STDOUT_FILENO);
|
||||
cmdlineUsage(argv[0]);
|
||||
exit(0);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user