Patchwork [iproute,09/10] rtmon: List options in help text

login
register
mail settings
Submitter Phil Sutter
Date Aug. 16, 2018, 10:28 a.m.
Message ID <20180816102802.31782-10-phil@nwl.cc>
Download mbox | patch
Permalink /patch/594833/
State New
Headers show

Comments

Phil Sutter - Aug. 16, 2018, 10:28 a.m.
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 ip/rtmon.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/ip/rtmon.c b/ip/rtmon.c
index acc11df49b423..0e795f740e627 100644
--- a/ip/rtmon.c
+++ b/ip/rtmon.c
@@ -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);
 }