naccyde / rpms / iproute

Forked from rpms/iproute 8 months ago
Clone

Blame SOURCES/0092-ipaddrlabel-Improve-help-text-precision.patch

049c96
From 42bab91fdeafcbbc1766ccc348b7a57082a7fbb4 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Mon, 7 Mar 2016 20:33:46 +0100
049c96
Subject: [PATCH] ipaddrlabel: Improve help text precision
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1251186
049c96
Upstream Status: iproute2.git commit 27ff1a564bb20
049c96
049c96
commit 27ff1a564bb20f80dca1023b29d5d22fe196e727
049c96
Author: Phil Sutter <phil@nwl.cc>
049c96
Date:   Wed Mar 2 19:19:50 2016 +0100
049c96
049c96
    ipaddrlabel: Improve help text precision
049c96
049c96
    Neither 'list' nor 'flush' actions accept parameters, and with given
049c96
    prefix the action keyword is not optional anymore.
049c96
049c96
    Signed-off-by: Phil Sutter <phil@nwl.cc>
049c96
---
049c96
 ip/ipaddrlabel.c | 3 ++-
049c96
 1 file changed, 2 insertions(+), 1 deletion(-)
049c96
049c96
diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c
049c96
index 1158b33..7f25f0b 100644
049c96
--- a/ip/ipaddrlabel.c
049c96
+++ b/ip/ipaddrlabel.c
049c96
@@ -50,7 +50,8 @@ static void usage(void) __attribute__((noreturn));
049c96
 
049c96
 static void usage(void)
049c96
 {
049c96
-	fprintf(stderr, "Usage: ip addrlabel [ list | add | del | flush ] prefix PREFIX [ dev DEV ] [ label LABEL ]\n");
049c96
+	fprintf(stderr, "Usage: ip addrlabel { add | del } prefix PREFIX [ dev DEV ] [ label LABEL ]\n");
049c96
+	fprintf(stderr, "       ip addrlabel [ list | flush | help ]\n");
049c96
 	exit(-1);
049c96
 }
049c96
 
049c96
-- 
049c96
1.8.3.1
049c96