From 916af6559c73f8a2d91c8b73f265954a33473f1e Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 15 Sep 2021 19:00:41 -0400 Subject: [PATCH] vtysh, doc: add doc & help text for -t/--timestamp Signed-off-by: Quentin Young --- doc/manpages/vtysh.rst | 4 ++++ vtysh/vtysh_main.c | 1 + 2 files changed, 5 insertions(+) diff --git a/doc/manpages/vtysh.rst b/doc/manpages/vtysh.rst index 94ba3baebd..396fcfc66e 100644 --- a/doc/manpages/vtysh.rst +++ b/doc/manpages/vtysh.rst @@ -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. diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 1721a8370b..f34bb9a456 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -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"