|
|
930fb9 |
From 83af05569ffb9d607438f93d98c5ead84b1cc5ac Mon Sep 17 00:00:00 2001
|
|
|
930fb9 |
From: Phil Sutter <psutter@redhat.com>
|
|
|
930fb9 |
Date: Thu, 13 Sep 2018 20:38:04 +0200
|
|
|
930fb9 |
Subject: [PATCH] genl: Fix help text
|
|
|
930fb9 |
|
|
|
930fb9 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1612704
|
|
|
930fb9 |
Upstream Status: iproute2.git commit d94974bc91eb2
|
|
|
930fb9 |
|
|
|
930fb9 |
commit d94974bc91eb2aa2df4592140e1aa3ea0d3cddba
|
|
|
930fb9 |
Author: Phil Sutter <phil@nwl.cc>
|
|
|
930fb9 |
Date: Thu Aug 16 12:27:57 2018 +0200
|
|
|
930fb9 |
|
|
|
930fb9 |
genl: Fix help text
|
|
|
930fb9 |
|
|
|
930fb9 |
The '| help' part was misleading: In fact, 'genl help' does not work but
|
|
|
930fb9 |
'genl <OBJECT> help' does. Fix the help text to make that clear.
|
|
|
930fb9 |
|
|
|
930fb9 |
In addition to that, list -Version and -help flags as well.
|
|
|
930fb9 |
|
|
|
930fb9 |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
930fb9 |
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
|
|
930fb9 |
---
|
|
|
930fb9 |
genl/genl.c | 4 ++--
|
|
|
930fb9 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
930fb9 |
|
|
|
930fb9 |
diff --git a/genl/genl.c b/genl/genl.c
|
|
|
930fb9 |
index 20ecb8b..1940a23 100644
|
|
|
930fb9 |
--- a/genl/genl.c
|
|
|
930fb9 |
+++ b/genl/genl.c
|
|
|
930fb9 |
@@ -98,9 +98,9 @@ static void usage(void) __attribute__((noreturn));
|
|
|
930fb9 |
|
|
|
930fb9 |
static void usage(void)
|
|
|
930fb9 |
{
|
|
|
930fb9 |
- fprintf(stderr, "Usage: genl [ OPTIONS ] OBJECT | help }\n"
|
|
|
930fb9 |
+ fprintf(stderr, "Usage: genl [ OPTIONS ] OBJECT [help] }\n"
|
|
|
930fb9 |
"where OBJECT := { ctrl etc }\n"
|
|
|
930fb9 |
- " OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] }\n");
|
|
|
930fb9 |
+ " OPTIONS := { -s[tatistics] | -d[etails] | -r[aw] | -V[ersion] | -h[elp] }\n");
|
|
|
930fb9 |
exit(-1);
|
|
|
930fb9 |
}
|
|
|
930fb9 |
|
|
|
930fb9 |
--
|
|
|
930fb9 |
1.8.3.1
|
|
|
930fb9 |
|