Conversation
|
| .name('honeydew') | ||
| .description('C# Analysis Tool') | ||
| .option('-wd --working-directory', 'Selects the directory where Honeydew will store the results folder.' + | ||
| .helpGroup('Analysis') |
There was a problem hiding this comment.
cli-new checks if the plugin command has a .helpGroup() method to determine if it's compatible with Commander v14. If the method doesn't exist, the plugin is marked as "incompatible with this CLI version
(needs update)".
So .helpGroup('Analysis') serves two purposes:
- Passes the compatibility check in cli-new
- Groups the command under "Analysis" in the help output (which is the actual Commander v14 feature)
| .description('C# Analysis Tool') | ||
| .option('-wd --working-directory', 'Selects the directory where Honeydew will store the results folder.' + | ||
| .helpGroup('Analysis') | ||
| .option('-w, --working-directory', 'Selects the directory where Honeydew will store the results folder.' + |
There was a problem hiding this comment.
Commander v14 enforces stricter validation for option flags:
Short flags must be a single dash followed by a single character.
- -w is valid (single dash + single char)
- -wd is invalid (single dash + two chars)
package.json
Outdated
| "cli-progress": "^3.12.0", | ||
| "commander": "^11.1.0", | ||
| "commander": "^14.0.2", | ||
| "java-caller": "^4.3.2", |
No description provided.