]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: Display version w/ vtysh --help
authorDonald Sharp <sharpd@nvidia.com>
Fri, 4 Dec 2020 03:21:43 +0000 (22:21 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 4 Dec 2020 03:21:43 +0000 (22:21 -0500)
Add a bit of useful data to know what version of FRR we
are playing with in this vtysh instance.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
vtysh/vtysh_main.c

index 1ca219a26c50eb4ebf29b8ecff90d4ec135b3cc2..6bb5ab1c8c39de9e79e00fb6adac4f616a864cde 100644 (file)
@@ -153,7 +153,7 @@ static void usage(int status)
                        progname);
        else
                printf("Usage : %s [OPTION...]\n\n"
-                      "Integrated shell for FRR. \n\n"
+                      "Integrated shell for FRR (version " FRR_VERSION "). \n\n"
                       "-b, --boot               Execute boot startup configuration\n"
                       "-c, --command            Execute argument as command\n"
                       "-d, --daemon             Connect only to the specified daemon\n"