From bdc4a20b1daf9d16b4fd7a527bac10201be90b44 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 11 Feb 2021 11:33:17 +0100 Subject: [PATCH] help --- sink/sink20169.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sink/sink20169.c b/sink/sink20169.c index 2050567..f0370bc 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -315,7 +315,7 @@ int main(int argc, char **argv) { const char *configFilename = DEFAULT_CONFIG_FILENAME; int c; - while ((c = getopt(argc, argv, "f:vs:")) != -1) { + while ((c = getopt(argc, argv, "f:vs:h")) != -1) { switch (c) { case 'f': configFilename = strdup(optarg); @@ -330,6 +330,12 @@ int main(int argc, char **argv) { printf("sinkserver for mainsfrequency counter\n"); printf("https://home.hottis.de/gitlab/wolutator/mains-frequency-counter-stm32\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; } }