From 8419dc72fb65ecfc5a3eed4c61cc386dc3960269 Mon Sep 17 00:00:00 2001 From: Christian Krause Date: Sun, 30 Jul 2023 23:51:34 +0200 Subject: [PATCH] pymodbus.server: allow strings for "-p" paramter (#1713) --- pymodbus/repl/server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymodbus/repl/server/main.py b/pymodbus/repl/server/main.py index bb01e64d7..914f2cb34 100644 --- a/pymodbus/repl/server/main.py +++ b/pymodbus/repl/server/main.py @@ -137,7 +137,7 @@ def run( autocompletion=framers, help="Modbus framer to use", ), - modbus_port: int = typer.Option(5020, "--modbus-port", "-p", help="Modbus port"), + modbus_port: str = typer.Option("5020", "--modbus-port", "-p", help="Modbus port"), modbus_slave_id: List[int] = typer.Option( [1], "--slave-id", "-u", help="Supported Modbus slave id's" ),