From: Phil Sutter Date: Thu, 16 Aug 2018 10:27:57 +0000 (+0200) Subject: genl: Fix help text X-Git-Tag: v4.19.0~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d94974bc91eb2aa2df4592140e1aa3ea0d3cddba;p=thirdparty%2Fiproute2.git genl: Fix help text The '| help' part was misleading: In fact, 'genl help' does not work but 'genl help' does. Fix the help text to make that clear. In addition to that, list -Version and -help flags as well. Signed-off-by: Phil Sutter Signed-off-by: Stephen Hemminger --- diff --git a/genl/genl.c b/genl/genl.c index 20ecb8b63..1940a23c5 100644 --- a/genl/genl.c +++ b/genl/genl.c @@ -98,9 +98,9 @@ static void usage(void) __attribute__((noreturn)); static void usage(void) { - fprintf(stderr, "Usage: genl [ OPTIONS ] OBJECT | help }\n" + fprintf(stderr, "Usage: genl [ OPTIONS ] OBJECT [help] }\n" "where OBJECT := { ctrl etc }\n" - " OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] }\n"); + " OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -V[ersion] | -h[elp] }\n"); exit(-1); }