This commit is contained in:
Wolfgang Hottgenroth 2021-02-11 11:33:17 +01:00
parent 539e12db14
commit bdc4a20b1d

View File

@ -315,7 +315,7 @@ int main(int argc, char **argv) {
const char *configFilename = DEFAULT_CONFIG_FILENAME; const char *configFilename = DEFAULT_CONFIG_FILENAME;
int c; int c;
while ((c = getopt(argc, argv, "f:vs:")) != -1) { while ((c = getopt(argc, argv, "f:vs:h")) != -1) {
switch (c) { switch (c) {
case 'f': case 'f':
configFilename = strdup(optarg); configFilename = strdup(optarg);
@ -330,6 +330,12 @@ int main(int argc, char **argv) {
printf("sinkserver for mainsfrequency counter\n"); printf("sinkserver for mainsfrequency counter\n");
printf("https://home.hottis.de/gitlab/wolutator/mains-frequency-counter-stm32\n"); printf("https://home.hottis.de/gitlab/wolutator/mains-frequency-counter-stm32\n");
printf("Version: " VERSION "\n"); printf("Version: " VERSION "\n");
printf("\nUsage\n");
printf(" -f FILENAME R..... Config file to be used\n");
printf(" -v ............... Verbose, writes all logging on stdout too\n");
printf(" -s FACILITY ...... Sets syslog facility, only LOCAL[0..7]\n");
printf(" USER and DAEMON are supported\n");
printf(" -h ............... This help\n");
break; break;
} }
} }