From: Stephen Hemminger Date: Wed, 27 Mar 2024 23:55:09 +0000 (-0700) Subject: ila: allow show, list and lst as synonyms X-Git-Tag: v6.9.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=037a3a0d66ef110a22720c23934bdee34191539f;p=thirdparty%2Fiproute2.git ila: allow show, list and lst as synonyms Across ip commands show, list and misspelling lst are treated the same. Signed-off-by: Stephen Hemminger --- diff --git a/ip/ipila.c b/ip/ipila.c index f4387e03..80f34f29 100644 --- a/ip/ipila.c +++ b/ip/ipila.c @@ -301,7 +301,9 @@ int do_ipila(int argc, char **argv) return do_add(argc-1, argv+1); if (matches(*argv, "delete") == 0) return do_del(argc-1, argv+1); - if (matches(*argv, "list") == 0) + if (matches(*argv, "show") == 0 || + matches(*argv, "lst") == 0 || + matches(*argv, "list") == 0) return do_list(argc-1, argv+1); fprintf(stderr, "Command \"%s\" is unknown, try \"ip ila help\".\n",