From aceb4cddcfb71db93d629917636e60418658dcaa Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 5 Mar 2022 18:37:49 +0100 Subject: [PATCH] Add missing `-H` option to usage text, issue #41 Signed-off-by: Joachim Wiberg --- src/syslogd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/syslogd.c b/src/syslogd.c index 02d0718..ec8c800 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -290,8 +290,8 @@ static void sys_seqno_save(void) int usage(int code) { printf("Usage:\n" - " syslogd [-46AdFKknsTtv?] [-a PEER] [-b NAME] [-f FILE] [-m INTERVAL]\n" - " [-P PID_FILE] [-p SOCK_PATH] [-r SIZE[:NUM]]\n" + " syslogd [-46AdFHKknsTtv?] [-a PEER] [-b NAME] [-f FILE] [-m INTERVAL]\n" + " [-P PID_FILE] [-p SOCK_PATH] [-r SIZE[:NUM]]\n" "Options:\n" " -4 Force IPv4 only\n" " -6 Force IPv6 only\n" @@ -320,6 +320,7 @@ int usage(int code) " -d Enable debug mode, implicitly enables -F to prevent backgrounding\n" " -F Run in foreground, required when monitored by init(1)\n" " -f FILE Alternate .conf file, default: %s\n" + " -H Use hostname from message instead of address for remote messages\n" " -K Disable kernel logging, useful in container use-cases\n" " -k Allow logging with facility 'kernel', otherwise remapped to 'user'\n" " -m MINS Interval between MARK messages, 0 to disable, default: 20 min\n"