Fix commander v14 duplicate flag conflict - rename Mocha debug to --inspect#5315
Closed
Copilot wants to merge 2 commits intodependabot/npm_and_yarn/4.x/commander-14.0.2from
Closed
Conversation
Copilot stopped work on behalf of
kobenguyent due to an error
November 18, 2025 05:23
Collaborator
|
@copilot investigate and propose another approach to have debug flag for both node and codeceptjs and we sometimes want to see different logs |
Contributor
Author
I've renamed the Mocha debug flag from
This allows you to use either flag independently or both together. Commit: a957813 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
[WIP] Fix commander upgrading conflict error
Fix commander v14 duplicate flag conflict - rename Mocha debug to --inspect
Nov 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation/Description of the PR
The upgrade from commander v11.1.0 to v14.0.2 introduced a breaking change where duplicate option flags are no longer allowed. This caused the error:
Root Cause: Both the
runandrun-reruncommands had duplicate--debugoptions:commandFlags.debug.flagadds--debug(CodeceptJS's debug flag for "output additional information")-d, --debugadds it again (Mocha's debug flag for "enable node's debugger")Solution: Renamed the Mocha debug flag from
-d, --debugto--inspectto avoid conflict while preserving both functionalities. This allows users to:--debugfor CodeceptJS debug output--inspectfor Node debuggerApplicable helpers:
Applicable plugins:
Type of change
Checklist:
npm run docs)npm run lint)npm test)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.