From: Florin Coras Date: Fri, 16 Mar 2018 16:13:37 +0000 (-0700) Subject: cli: make q work again X-Git-Tag: v18.04-rc1~112 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F11195%2F1;p=vpp.git cli: make q work again After the addition of "qos" cli, "quit" command is not the only match for "q". Therefore, add a separate "q" cli to avoid ambiguity. Change-Id: I84f6ddce14ef7d5fa7089537cb62adfecea0e501 Signed-off-by: Florin Coras --- diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c index 5838bbbc7a2..3df9a98ffb1 100644 --- a/src/vlib/unix/cli.c +++ b/src/vlib/unix/cli.c @@ -2958,6 +2958,14 @@ VLIB_CLI_COMMAND (unix_cli_quit_command, static) = { }; /* *INDENT-ON* */ +/* *INDENT-OFF* */ +VLIB_CLI_COMMAND (unix_cli_q_command, static) = { + .path = "q", + .short_help = "Exit CLI", + .function = unix_cli_quit, +}; +/* *INDENT-ON* */ + /** CLI command to execute a VPP command script. */ static clib_error_t * unix_cli_exec (vlib_main_t * vm,