From 26a6b19a0efb0604103e3d4275406fe6c498f878 Mon Sep 17 00:00:00 2001 From: Maxime Peim Date: Wed, 31 Jul 2024 17:11:16 +0200 Subject: vlib: add 'exit' as alias to 'quit' Type: improvement Change-Id: I099739a246dbdb6fdca136d06bc8e4b3f493a839 Signed-off-by: Maxime Peim --- src/vlib/unix/cli.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vlib/unix') diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c index 90cf61d811d..051c5730aed 100644 --- a/src/vlib/unix/cli.c +++ b/src/vlib/unix/cli.c @@ -3329,6 +3329,12 @@ VLIB_CLI_COMMAND (unix_cli_q_command, static) = { .function = unix_cli_quit, }; +VLIB_CLI_COMMAND (unix_cli_exit_command, static) = { + .path = "exit", + .short_help = "Exit CLI", + .function = unix_cli_quit, +}; + /** CLI command to execute a VPP command script. */ static clib_error_t * unix_cli_exec (vlib_main_t * vm, -- cgit 1.2.3-korg