cmdline: log to stdout if -h or --help was used

This commit is contained in:
Robert Swiecki 2023-10-01 13:32:12 +02:00
parent 50a741cf65
commit d99e530134

View File

@ -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;