From 81ca3206ad0ed4e8158148ef0e6e3904c5bda905 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 8 Oct 2020 21:39:26 +0700 Subject: vty: fix 'show bts' command: BTS number is optional Change-Id: If53fb07ec38f6bbc368ce84d14e59fa8167691d3 --- src/common/vty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/vty.c b/src/common/vty.c index f9bccee2..534b6328 100644 --- a/src/common/vty.c +++ b/src/common/vty.c @@ -965,9 +965,9 @@ static void bts_dump_vty(struct vty *vty, const struct gsm_bts *bts) } -DEFUN(show_bts, show_bts_cmd, "show bts <0-255>", - SHOW_STR "Display information about a BTS\n" - BTS_NR_STR) +DEFUN(show_bts, show_bts_cmd, "show bts [<0-255>]", + SHOW_STR "Display information about a BTS\n" + BTS_NR_STR) { const struct gsm_network *net = gsmnet_from_vty(vty); int bts_nr; -- cgit v1.2.3