libbsc: Make argument optional in some 'show' commands

The actual command implementation was already for this, but some
bad vty parsing prevented optional range arguments from working
properly.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index dfe80c9..75ef880 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -295,7 +295,7 @@
 	dump_pchan_load_vty(vty, "    ", &pl);
 }
 
-DEFUN(show_bts, show_bts_cmd, "show bts <0-255>",
+DEFUN(show_bts, show_bts_cmd, "show bts [<0-255>]",
 	SHOW_STR "Display information about a BTS\n"
 		"BTS number")
 {
@@ -667,7 +667,7 @@
 
 DEFUN(show_trx,
       show_trx_cmd,
-      "show trx <0-255> <0-255>",
+      "show trx [<0-255>] [<0-255>]",
 	SHOW_STR "Display information about a TRX\n"
 	"BTS Number\n"
 	"TRX Number\n")
@@ -738,7 +738,7 @@
 
 DEFUN(show_ts,
       show_ts_cmd,
-      "show timeslot <0-255> <0-255> <0-7>",
+      "show timeslot [<0-255>] [<0-255>] [<0-7>]",
 	SHOW_STR "Display information about a TS\n"
 	"BTS Number\n" "TRX Number\n" "Timeslot Number\n")
 {
@@ -1030,7 +1030,7 @@
 
 DEFUN(show_lchan,
       show_lchan_cmd,
-      "show lchan <0-255> <0-255> <0-7> [lchan_nr]",
+      "show lchan [<0-255>] [<0-255>] [<0-7>] [lchan_nr]",
 	SHOW_STR "Display information about a logical channel\n"
 	"BTS Number\n" "TRX Number\n" "Timeslot Number\n"
 	LCHAN_NR_STR)
@@ -1041,7 +1041,7 @@
 
 DEFUN(show_lchan_summary,
       show_lchan_summary_cmd,
-      "show lchan summary <0-255> <0-255> <0-7> [lchan_nr]",
+      "show lchan summary [<0-255>] [<0-255>] [<0-7>] [lchan_nr]",
 	SHOW_STR "Display information about a logical channel\n"
         "Short summary\n"
 	"BTS Number\n" "TRX Number\n" "Timeslot Number\n"
@@ -1066,7 +1066,7 @@
 
 DEFUN(show_paging,
       show_paging_cmd,
-      "show paging <0-255>",
+      "show paging [<0-255>]",
 	SHOW_STR "Display information about paging reuqests of a BTS\n"
 	"BTS Number\n")
 {