diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2012-12-28 12:15:11 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-01-01 17:04:52 +0100 |
commit | 39c31dea2e2f63a0710cc3a4c5306a1170ca4546 (patch) | |
tree | b4df3a2199ac3acfb26a413e786f4a7961c1b55d /openbsc/src | |
parent | 01c13a3a455c1bf04c372b657caa0e2a82048994 (diff) |
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>
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libbsc/bsc_vty.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c index dfe80c9e7..75ef880b6 100644 --- a/openbsc/src/libbsc/bsc_vty.c +++ b/openbsc/src/libbsc/bsc_vty.c @@ -295,7 +295,7 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts) 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 @@ static void trx_dump_vty(struct vty *vty, struct gsm_bts_trx *trx) 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 @@ static void ts_dump_vty(struct vty *vty, struct gsm_bts_trx_ts *ts) 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 @@ static int lchan_summary(struct vty *vty, int argc, const char **argv, 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, 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 @@ static void bts_paging_dump_vty(struct vty *vty, struct gsm_bts *bts) 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") { |