Skip to content

Commit

Permalink
pymodbus.server: allow strings for "-p" paramter (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
chkr-private authored Jul 30, 2023
1 parent 84ab5d4 commit 8419dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymodbus/repl/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
),
Expand Down

0 comments on commit 8419dc7

Please sign in to comment.