From 25b231f8bd8e039a93ceb1ed8816849e02a24dc2 Mon Sep 17 00:00:00 2001 From: Jonathan Romano Date: Tue, 12 Dec 2023 04:13:30 +0000 Subject: [PATCH] Parse port argument as int --- mem_usage_ui/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mem_usage_ui/__main__.py b/mem_usage_ui/__main__.py index 808189c..f303682 100644 --- a/mem_usage_ui/__main__.py +++ b/mem_usage_ui/__main__.py @@ -40,7 +40,7 @@ def parse_args(): parser = ArgumentParser() parser.add_argument("--debug", required=False, default=False, type=bool) parser.add_argument("--host", required=False, default="localhost") - parser.add_argument("--port", required=False, default=8080) + parser.add_argument("--port", required=False, default=8080, type=int) return parser.parse_args()