This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
dexter gerrit-no-reply at lists.osmocom.orgdexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/20525 )
Change subject: pcu_main: add commandline option --vty-ref-xml
......................................................................
pcu_main: add commandline option --vty-ref-xml
The commandline option --vty-ref-xml is needed to enable automatic
generation of the VTY reference manual.
Change-Id: Ie1829a06b83f69f4cd8256adbf9437388ca3d7e0
Related: SYS#4937, OS#1601
---
M src/pcu_main.cpp
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/25/20525/1
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp
index d0e630f..77c46dd 100644
--- a/src/pcu_main.cpp
+++ b/src/pcu_main.cpp
@@ -82,6 +82,7 @@
" -D --daemonize Fork the process into a background "
"daemon\n"
" -i --gsmtap-ip The destination IP used for GSMTAP\n"
+ " --vty-ref-xml Generate the VTY reference XML output and exit.\n"
);
}
@@ -90,6 +91,7 @@
{
while (1) {
int option_idx = 0, c;
+ static int long_option = 0;
static const struct option long_options[] = {
{ "help", 0, 0, 'h' },
{ "config-file", 1, 0, 'c' },
@@ -100,6 +102,7 @@
{ "daemonize", 0, 0, 'D' },
{ "exit", 0, 0, 'e' },
{ "gsmtap-ip", 1, 0, 'i' },
+ { "vty-ref-xml", 0, &long_option, 1 },
{ 0, 0, 0, 0 }
};
@@ -113,6 +116,15 @@
print_help();
exit(0);
break;
+ case 0:
+ switch (long_option) {
+ case 1:
+ vty_dump_xml_ref(stdout);
+ exit(0);
+ default:
+ fprintf(stderr, "error parsing cmdline options\n");
+ exit(2);
+ }
case 'c':
free(config_file);
config_file = strdup(optarg);
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/20525
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ie1829a06b83f69f4cd8256adbf9437388ca3d7e0
Gerrit-Change-Number: 20525
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201009/d64e7a3b/attachment.htm>