From b926293fa7396d436fa6381c8e95d52e1d757d05 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Mon, 27 Sep 2021 13:33:10 -0300 Subject: [PATCH] define arg types --- scripts/dht_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dht_node.py b/scripts/dht_node.py index 9321c5f52..476d2107d 100644 --- a/scripts/dht_node.py +++ b/scripts/dht_node.py @@ -32,7 +32,7 @@ async def main(host: str, port: int): if __name__ == '__main__': parser = argparse.ArgumentParser( description="Starts a single DHT node, which then can be used as a seed node or just a contributing node.") - parser.add_argument("--host", default='0.0.0.0', help="Host to listen for requests. Default: 0.0.0.0") - parser.add_argument("--port", default=4444, help="Port to listen for requests. Default: 4444") + parser.add_argument("--host", default='0.0.0.0', type=str, help="Host to listen for requests. Default: 0.0.0.0") + parser.add_argument("--port", default=4444, type=int, help="Port to listen for requests. Default: 4444") args = parser.parse_args() asyncio.run(main(args.host, args.port))