From: Phil Sutter Subject: [iproute PATCH 05/10] genl: Fix help text Date: Thu, 16 Aug 2018 12:27:57 +0200 Message-ID: <20180816102802.31782-6-phil@nwl.cc> References: <20180816102802.31782-1-phil@nwl.cc> Cc: netdev@vger.kernel.org To: Stephen Hemminger Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:43632 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390487AbeHPN0U (ORCPT ); Thu, 16 Aug 2018 09:26:20 -0400 In-Reply-To: <20180816102802.31782-1-phil@nwl.cc> Sender: netdev-owner@vger.kernel.org List-ID: 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 --- genl/genl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genl/genl.c b/genl/genl.c index 20ecb8b63ef62..1940a23c5a99c 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); } -- 2.18.0