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/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcap/+/23781 ) Change subject: add "--version" to osmo-pcap-client and -server ...................................................................... add "--version" to osmo-pcap-client and -server Change-Id: Ib82ee1a784a657f7274d78ba5f7a8afe6cfab395 --- M src/osmo_client_main.c M src/osmo_server_main.c 2 files changed, 11 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/81/23781/1 diff --git a/src/osmo_client_main.c b/src/osmo_client_main.c index 7ca3548..831450d 100644 --- a/src/osmo_client_main.c +++ b/src/osmo_client_main.c @@ -94,6 +94,7 @@ printf(" Some useful help...\n"); printf(" -h --help this text\n"); printf(" -D --daemonize Fork the process into a background daemon\n"); + printf(" -V --version Print the version number\n"); printf(" -d option --debug=DRLL:DCC:DMM:DRR:DRSL:DNM enable debugging\n"); printf(" -s --disable-color\n"); printf(" -T --timestamp. Print a timestamp in the debug output.\n"); @@ -138,6 +139,7 @@ {"help", 0, 0, 'h'}, {"daemonize", 0, 0, 'D'}, {"debug", 1, 0, 'd'}, + {"version", 0, 0, 'V'}, {"disable-color", 0, 0, 's'}, {"timestamp", 0, 0, 'T'}, {"log-level", 1, 0, 'e'}, @@ -166,6 +168,10 @@ case 'd': log_parse_category_mask(osmo_stderr_target, optarg); break; + case 'V': + print_version(1); + exit(0); + break; case 's': log_set_use_color(osmo_stderr_target, 0); break; diff --git a/src/osmo_server_main.c b/src/osmo_server_main.c index 9c234d5..112bd47 100644 --- a/src/osmo_server_main.c +++ b/src/osmo_server_main.c @@ -104,6 +104,7 @@ printf(" Some useful help...\n"); printf(" -h --help this text\n"); printf(" -D --daemonize Fork the process into a background daemon\n"); + printf(" -V --version Print the version number\n"); printf(" -d option --debug=DRLL:DCC:DMM:DRR:DRSL:DNM enable debugging\n"); printf(" -s --disable-color\n"); printf(" -T --timestamp. Print a timestamp in the debug output.\n"); @@ -148,6 +149,7 @@ {"help", 0, 0, 'h'}, {"daemonize", 0, 0, 'D'}, {"debug", 1, 0, 'd'}, + {"version", 0, 0, 'V'}, {"disable-color", 0, 0, 's'}, {"timestamp", 0, 0, 'T'}, {"log-level", 1, 0, 'e'}, @@ -176,6 +178,9 @@ case 'd': log_parse_category_mask(osmo_stderr_target, optarg); break; + case 'V': + print_version(1); + exit(0); case 's': log_set_use_color(osmo_stderr_target, 0); break; -- To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/23781 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-pcap Gerrit-Branch: master Gerrit-Change-Id: Ib82ee1a784a657f7274d78ba5f7a8afe6cfab395 Gerrit-Change-Number: 23781 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210418/646c556f/attachment.htm>