From 053255520216654c6914e84b0a37e86c542898bd Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Tue, 7 Oct 2008 17:16:08 +0200 Subject: [PATCH] Support "ip link add help" for rtnl_link API For some reason "ip link add help" is currently not supported when using the new rtnl_link API. Fix that. Signed-off-by: Patrick McHardy --- ip/iplink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ip/iplink.c b/ip/iplink.c index f4cbeb3ea..81122aec9 100644 --- a/ip/iplink.c +++ b/ip/iplink.c @@ -274,6 +274,8 @@ int iplink_parse(int argc, char **argv, struct iplink_req *req, if (strcmp(*argv, "dev") == 0) { NEXT_ARG(); } + if (matches(*argv, "help") == 0) + usage(); if (*dev) duparg2("dev", *argv); *dev = *argv; -- 2.47.2