]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: Add missing stats command to usage
authorYedaya Katsman <yedaya.ka@gmail.com>
Sat, 3 Feb 2024 20:03:05 +0000 (22:03 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 5 Feb 2024 16:53:36 +0000 (08:53 -0800)
The stats command was added in 54d82b0699a0 ("ip: Add a new family of
commands, "stats""), but wasn't included in the subcommand list in the
help usage.
Add it in the right position alphabetically.

Fixes: 54d82b0699a0 ("ip: Add a new family of commands, "stats"")
Signed-off-by: Yedaya Katsman <yedaya.ka@gmail.com>
Reviewed-by: Petr Machata <me@pmachata.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ip.c

diff --git a/ip/ip.c b/ip/ip.c
index 39bea69b7137f76e0c895d8540967f494ab7cbab..9e81248ff7f0941f807bffed4ba237b3c0f85ef5 100644 (file)
--- a/ip/ip.c
+++ b/ip/ip.c
@@ -64,7 +64,7 @@ static void usage(void)
                "where  OBJECT := { address | addrlabel | fou | help | ila | ioam | l2tp | link |\n"
                "                   macsec | maddress | monitor | mptcp | mroute | mrule |\n"
                "                   neighbor | neighbour | netconf | netns | nexthop | ntable |\n"
-               "                   ntbl | route | rule | sr | tap | tcpmetrics |\n"
+               "                   ntbl | route | rule | sr | stats | tap | tcpmetrics |\n"
                "                   token | tunnel | tuntap | vrf | xfrm }\n"
                "       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |\n"
                "                    -h[uman-readable] | -iec | -j[son] | -p[retty] |\n"