]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
rtmon: List options in help text
authorPhil Sutter <phil@nwl.cc>
Thu, 16 Aug 2018 10:28:01 +0000 (12:28 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 16 Aug 2018 17:25:02 +0000 (10:25 -0700)
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/rtmon.c

index acc11df49b42371e69212b7297ed1f3c7d734e1e..0e795f740e62758ce8deb5de79a7131dc68fdf9f 100644 (file)
@@ -63,7 +63,9 @@ static int dump_msg2(const struct sockaddr_nl *who,
 
 static void usage(void)
 {
-       fprintf(stderr, "Usage: rtmon file FILE [ all | LISTofOBJECTS]\n");
+       fprintf(stderr, "Usage: rtmon [ OPTIONS ] file FILE [ all | LISTofOBJECTS ]\n");
+       fprintf(stderr, "OPTIONS := { -f[amily] { inet | inet6 | link | help } |\n"
+                       "             -4 | -6 | -0 | -V[ersion] }\n");
        fprintf(stderr, "LISTofOBJECTS := [ link ] [ address ] [ route ]\n");
        exit(-1);
 }