Skip to content

Fix CLI startup errors from invalid Spectre.Console command configuration#44

Merged
perkops merged 5 commits intomainfrom
hotfix/cli
Mar 5, 2026
Merged

Fix CLI startup errors from invalid Spectre.Console command configuration#44
perkops merged 5 commits intomainfrom
hotfix/cli

Conversation

@perkops
Copy link
Member

@perkops perkops commented Mar 5, 2026

The CLI tool (atc-kepware-configuration) fails to start due to three Spectre.Console command configuration errors introduced when adding driver-specific commands. This PR fixes all three issues so the CLI can launch and display help correctly.

🐛 Fixes

  • Fix tag create commands added to parent node instead of the create branch, causing "branch defines no commands" error
  • Rename --k and --w to --k-factor and --w-factor on IEC 60870-5-104 channel settings — Spectre.Console requires long options to be more than one character
  • Rename device-level --username to --device-username on Yokogawa CX/DX/GX/MW Ethernet and SNMP device settings to avoid conflict with the base Kepware server --username option

🎨 Styling

  • Reformat AddCommand call chains in CommandAppExtensions for consistency

Per Kops added 4 commits March 5, 2026 16:16
- Rename --k to --k-factor and --w to --w-factor for IEC 60870 channel settings
- Spectre.Console requires long option names to be more than one character
- Rename device-level --username to --device-username to avoid conflict with base --username for Kepware server auth
- Affects Yokogawa CX/DX/GX/MW Ethernet and SNMP device settings
@perkops perkops requested a review from davidkallesen March 5, 2026 15:36
@perkops perkops merged commit a8d477c into main Mar 5, 2026
3 checks passed
@perkops perkops deleted the hotfix/cli branch March 5, 2026 15:41
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.

2 participants