mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-cbc.git
synced 2025-11-02 13:13:35 +00:00
cbc-apitool: Fix parsing if no argument is goven
Change-Id: I3abd7a22dc5df2bf7c926fb0e1ba09e60628f55d
This commit is contained in:
@@ -142,8 +142,9 @@ def main(argv):
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user