]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
genl: Fix help text
authorPhil Sutter <phil@nwl.cc>
Thu, 16 Aug 2018 10:27:57 +0000 (12:27 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 16 Aug 2018 17:25:02 +0000 (10:25 -0700)
The '| help' part was misleading: In fact, 'genl help' does not work but
'genl <OBJECT> 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 <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
genl/genl.c

index 20ecb8b63ef629eb7fda276ae5a7ba0150fba37a..1940a23c5a99c1c33bd42d70549327dba30916c5 100644 (file)
@@ -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);
 }