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 13:40:45 UTC 2021


laforge has submitted this change. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



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: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210124/9beaa04a/attachment.htm>


More information about the gerrit-log mailing list