From: Mark Einon Date: Mon, 16 Mar 2015 09:59:09 +0000 (+0000) Subject: ip: Make uniform the use of synonyms list, show and lst X-Git-Tag: v4.0.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=473544d96d56a9450f95e7d2f9322a3a1fb3b59f;p=thirdparty%2Fiproute2.git ip: Make uniform the use of synonyms list, show and lst Where used in the ip tool, the 'show' option always has the synonyms 'list' and 'lst', except for ip-token and ip-addrlabel, which are missing 'lst'. Add this as a synonym for these commands. Signed-off-by: Mark Einon --- diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c index b34dd8b14..f6a638b5a 100644 --- a/ip/ipaddrlabel.c +++ b/ip/ipaddrlabel.c @@ -248,6 +248,7 @@ int do_ipaddrlabel(int argc, char **argv) if (argc < 1) { return ipaddrlabel_list(0, NULL); } else if (matches(argv[0], "list") == 0 || + matches(argv[0], "lst") == 0 || matches(argv[0], "show") == 0) { return ipaddrlabel_list(argc-1, argv+1); } else if (matches(argv[0], "add") == 0) { diff --git a/ip/iptoken.c b/ip/iptoken.c index 5689c2ece..655f1601e 100644 --- a/ip/iptoken.c +++ b/ip/iptoken.c @@ -195,6 +195,7 @@ int do_iptoken(int argc, char **argv) if (argc < 1) { return iptoken_list(0, NULL); } else if (matches(argv[0], "list") == 0 || + matches(argv[0], "lst") == 0 || matches(argv[0], "show") == 0) { return iptoken_list(argc - 1, argv + 1); } else if (matches(argv[0], "set") == 0 ||