aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/unix/cli.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-03-16 09:13:37 -0700
committerFlorin Coras <fcoras@cisco.com>2018-03-16 09:13:37 -0700
commit33d162909f9d87507d85d494527d121e081f4a58 (patch)
tree9cc6982c4e5ef02aec780a808bdc77e61802c81e /src/vlib/unix/cli.c
parent039cbfe254be998f7311bc4638bb262b44efac19 (diff)
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 <fcoras@cisco.com>
Diffstat (limited to 'src/vlib/unix/cli.c')
-rw-r--r--src/vlib/unix/cli.c8
1 files changed, 8 insertions, 0 deletions
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,