]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ipaddrlabel: Improve help text precision
authorPhil Sutter <phil@nwl.cc>
Wed, 2 Mar 2016 18:19:50 +0000 (19:19 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 2 Mar 2016 19:23:51 +0000 (11:23 -0800)
Neither 'list' nor 'flush' actions accept parameters, and with given
prefix the action keyword is not optional anymore.

Signed-off-by: Phil Sutter <phil@nwl.cc>
ip/ipaddrlabel.c

index f01bc269e8f4124ef36c5a11cb8e25a223608029..ef093cbe6c30d35e50983143349f14081bc3cc1a 100644 (file)
@@ -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);
 }