Skip to content

feat: add --dealer-port and --pub-port CLI arguments#370

Merged
from2001 merged 3 commits intodevelopfrom
claude/issue-369-20260314-0838
Mar 14, 2026
Merged

feat: add --dealer-port and --pub-port CLI arguments#370
from2001 merged 3 commits intodevelopfrom
claude/issue-369-20260314-0838

Conversation

@from2001
Copy link
Collaborator

Add --dealer-port and --pub-port CLI arguments to styly-netsync-server, consistent with the existing --server-discovery-port argument. CLI arguments take precedence over config file values (CLI > config > defaults).

Closes #369

Generated with Claude Code

Add --dealer-port and --pub-port CLI arguments to styly-netsync-server,
consistent with the existing --server-discovery-port argument. CLI arguments
take precedence over config file values (CLI > config > defaults).

Closes #369

Co-authored-by: Masahiro Yamaguchi <from2001@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds CLI support for overriding the server’s ZeroMQ networking ports, wiring those values into config merging and extending config tests to cover the new behavior.

Changes:

  • Add --dealer-port and --pub-port CLI arguments to the server entrypoint.
  • Extend merge_cli_args() to apply dealer_port / pub_port overrides when provided.
  • Add/adjust unit tests verifying port overrides and immutability of the base config.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
STYLY-NetSync-Server/tests/test_config.py Adds tests ensuring CLI port args override config and don’t mutate the original config object.
STYLY-NetSync-Server/src/styly_netsync/server.py Introduces new CLI flags for dealer/pub ports using valid_port.
STYLY-NetSync-Server/src/styly_netsync/config.py Updates CLI-to-config merge logic to include dealer/pub port fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

from2001 and others added 2 commits March 14, 2026 10:01
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@from2001 from2001 merged commit f5ed073 into develop Mar 14, 2026
@from2001 from2001 deleted the claude/issue-369-20260314-0838 branch March 14, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --dealer-port and --pub-port CLI arguments

2 participants