Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pymodbus/server/simulator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"""
import argparse
import asyncio
import os

from pymodbus import pymodbus_apply_logging_config
from pymodbus.logging import Log
Expand All @@ -66,12 +67,12 @@ def get_commandline():
"--http_host",
help="use <http_host> as host to bind http listen",
type=str,
default=8081,
)
parser.add_argument(
"--http_port",
help="use <http_port> as port to bind http listen",
type=str,
default=8081,
)
parser.add_argument(
"--log",
Expand All @@ -84,7 +85,7 @@ def get_commandline():
"--json_file",
help='name of json file, default is "setup.json"',
type=str,
default="./pymodbus/server/simulator/setup.json",
default=os.path.join(os.path.dirname(__file__), "setup.json"),
)
parser.add_argument(
"--log_file",
Expand Down