From: Phil Sutter Date: Wed, 2 Mar 2016 18:19:50 +0000 (+0100) Subject: ipaddrlabel: Improve help text precision X-Git-Tag: v4.5.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27ff1a564bb20f80dca1023b29d5d22fe196e727;p=thirdparty%2Fiproute2.git ipaddrlabel: Improve help text precision Neither 'list' nor 'flush' actions accept parameters, and with given prefix the action keyword is not optional anymore. Signed-off-by: Phil Sutter --- diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c index f01bc269e..ef093cbe6 100644 --- a/ip/ipaddrlabel.c +++ b/ip/ipaddrlabel.c @@ -49,7 +49,8 @@ static void usage(void) __attribute__((noreturn)); static void usage(void) { - fprintf(stderr, "Usage: ip addrlabel [ list | add | del | flush ] prefix PREFIX [ dev DEV ] [ label LABEL ]\n"); + fprintf(stderr, "Usage: ip addrlabel { add | del } prefix PREFIX [ dev DEV ] [ label LABEL ]\n"); + fprintf(stderr, " ip addrlabel [ list | flush | help ]\n"); exit(-1); }