Change in osmo-cbc[master]: cbc-apitool: Fix parsing if no argument is goven

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.org
Sun Jan 24 12:54:53 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-cbc/+/22404 )


Change subject: cbc-apitool: Fix parsing if no argument is goven
......................................................................

cbc-apitool: Fix parsing if no argument is goven

Change-Id: I3abd7a22dc5df2bf7c926fb0e1ba09e60628f55d
---
M contrib/cbc-apitool.py
1 file changed, 3 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-cbc refs/changes/04/22404/1

diff --git a/contrib/cbc-apitool.py b/contrib/cbc-apitool.py
index c7ebcfa..7d0fedf 100755
--- a/contrib/cbc-apitool.py
+++ b/contrib/cbc-apitool.py
@@ -142,8 +142,9 @@
 
     argv = sys.argv
     if len(sys.argv) == 1:
-        argv = ['-h']
-    args = parser.parse_args(argv)
+        args = parser.parse_args(['-h'])
+    else:
+        args = parser.parse_args()
 
     server_host = args.host
     server_port = args.port

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-cbc/+/22404
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: I3abd7a22dc5df2bf7c926fb0e1ba09e60628f55d
Gerrit-Change-Number: 22404
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/20210124/9997a5f4/attachment.htm>


More information about the gerrit-log mailing list