aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc/osmo_bsc_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-10-03 23:42:06 +0200
committerDaniel Willmann <daniel@totalueberwachung.de>2011-11-04 12:27:45 +0100
commitc38d9c1784f5beefc6ec97f024d2b5afcb1681d0 (patch)
tree3bcd046de5c7b72d8e0a68e0c8ec87d7be287230 /openbsc/src/osmo-bsc/osmo_bsc_vty.c
parent7fd370a129f6912c2c19e369777220c63b72a011 (diff)
vty: Document more VTY parameters of a command
The below is used to identify commands that need proper documentation diff --git a/src/vty/command.c b/src/vty/command.c index ab1eaca..bcf72d0 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -426,6 +426,20 @@ void install_element(enum node_type ntype, struct cmd_element *cmd) cmd->strvec = cmd_make_descvec(cmd->string, cmd->doc); cmd->cmdsize = cmd_cmdsize(cmd->strvec); + + printf("NODE: %d\n", ntype); + + int j; + for (j = 0; j < vector_count(cmd->strvec); ++j) { + vector descvec = vector_slot(cmd->strvec, j); + int i; + for (i = 0; i < vector_active(descvec); i++) { + struct desc *desc = vector_slot(descvec, i); + if (desc == NULL) + continue; + printf(" %s %s\n", desc->cmd, desc->str); + } + } }
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_vty.c')
0 files changed, 0 insertions, 0 deletions