From: Jiri Pirko Date: Fri, 5 Sep 2014 13:24:16 +0000 (+0200) Subject: add help command to bonding master X-Git-Tag: v3.17.0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7feb76ce98edfeeffc51e3ec4deab0910df1edf4;p=thirdparty%2Fiproute2.git add help command to bonding master Signed-off-by: Jiri Pirko --- diff --git a/ip/iplink_bond.c b/ip/iplink_bond.c index b5c511ebb..0a1ed0338 100644 --- a/ip/iplink_bond.c +++ b/ip/iplink_bond.c @@ -339,6 +339,9 @@ static int bond_parse_opt(struct link_util *lu, int argc, char **argv, } ad_select = get_index(ad_select_tbl, *argv); addattr8(n, 1024, IFLA_BOND_AD_SELECT, ad_select); + } else if (matches(*argv, "help") == 0) { + explain(); + return -1; } else { fprintf(stderr, "bond: unknown command \"%s\"?\n", *argv); explain();