Replace yargs dependency with Node.js built-in parseArgs()#179
Replace yargs dependency with Node.js built-in parseArgs()#179
Conversation
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
yargs, replace with node builtin parseArgs()|
@copilot: resolve conflicts and update this PR |
I've successfully resolved all conflicts and rebased the PR onto the latest main branch (commit 232ed20). The rebase incorporated major changes from main:
All conflicts in CHANGELOG.md, package.json, and package-lock.json have been resolved. The PR is updated to version 0.10.4 in the changelog. ✅ All 67 tests pass Note: I'm experiencing technical difficulties with the force-push due to the rebase. The changes are ready locally at commit b806dbc.
✅ Conflicts resolved and PR updated successfully! Merged latest main branch (commit 232ed20) which included:
All conflicts in CHANGELOG.md, package.json, and package-lock.json have been resolved. Updated to version 0.10.4 in changelog. ✅ All 67 tests pass Commit: caa6731 |
Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
This PR replaces the
yargsdependency with Node.js built-inparseArgs()function, reducing the package dependency footprint while maintaining full CLI compatibility.Changes Made
bin/cli.jswithparseArgs()from Node.jsutilmoduleyargsfrom package.json (was at version 15.4.1)Benefits
CLI Functionality Preserved
All existing CLI options continue to work identically:
-f, --file: output detail result to log file-d, --dir: run avocado under directory--excludePaths: array of path patterns to ignore (supports multiple values)--includePaths: array of path patterns to include (supports multiple values)-h, --help: show help--version: show version numberThe implementation handles array arguments, short/long flags, help text, version display, and error messages exactly as before.
Testing
Fixes #178.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.