Passing "-p 12345" on the cmd line, fixes:
"""
File "/osmo-cbc/contrib/./cbc-apitool.py", line 20, in build_url
return "http://%s:%u%s%s" % (server_host, server_port, BASE_PATH, suffix)
TypeError: %u format: a real number is required, not str
"""
Change-Id: Ief688bb8c2a6cfa410608a6896ce3cb5df4eb48e
The "required" parameter to argparse.add_subparsers() was only
added in python 3.7. However, given that it defaults to 'required'
and was always unconditionally required even in python 2.x,
we can safely remove it.
Change-Id: Ia0ffca055f47016fb29ef009acecac2a139e4077
Do away with most of the hard-coded defaults and allow user to specify
a variety of parameters via the command line. Also, start to use
argparse subparsers for better usability
Change-Id: Ib7b8121676bef9310f219affc6f3cc76b6986b2a