]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh, doc: add doc & help text for -t/--timestamp
authorQuentin Young <qlyoung@nvidia.com>
Wed, 15 Sep 2021 23:00:41 +0000 (19:00 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 28 Mar 2023 14:10:33 +0000 (10:10 -0400)
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
doc/manpages/vtysh.rst
vtysh/vtysh_main.c

index 94ba3baebd295e5bcaa28ecc193ff0109b385328..396fcfc66e708cb55ac4e555f2d53e050b90dfd1 100644 (file)
@@ -67,6 +67,10 @@ OPTIONS available for the vtysh command:
 
    Display a usage message on standard output and exit.
 
+.. option:: -t, --timestamp
+
+   Print a timestamp before going to shell or reading the configuration file.
+
 .. option:: --no-fork
 
    When used in conjunction with ``-b``, prevents vtysh from forking children to handle configuring each target daemon.
index 1721a8370b1528faf5f18a34eae00f46623fce0c..f34bb9a4560bc42d5b80c22e6bb03a9b9eb8c129 100644 (file)
@@ -178,6 +178,7 @@ static void usage(int status)
                       "-u  --user               Run as an unprivileged user\n"
                       "-w, --writeconfig        Write integrated config (frr.conf) and exit\n"
                       "-H, --histfile           Override history file\n"
+                      "-t, --timestamp          Print a timestamp before going to shell or reading the configuration\n"
                       "    --no-fork            Don't fork clients to handle daemons (slower for large configs)\n"
                       "-h, --help               Display this help and exit\n\n"
                       "Note that multiple commands may be executed from the command\n"