fix: handle cli metadata flags#339
Conversation
|
|
58e77de to
0fe0778
Compare
|
Thank you for your interest in contributing to this project. I noticed this PR appears to have been created by an AI bot. Before we can review and consider this contribution, we need to clarify a few things: CLA Requirement: All contributions to SAP open source projects require signing our Contributor License Agreement (CLA). A CLA is a legal agreement that requires legal capacity to enter into — something an AI bot cannot do on its own. Therefore, we need a human or legal entity to take responsibility for this contribution and sign the CLA. Human Review: Our guidelines for AI-generated code contributions place obligations on contributors to review AI-generated output for compliance with licensing terms, third-party IP considerations, and tool-specific filtering requirements. These responsibilities require human judgment and accountability. Could you please clarify:
Without a human in the loop who can sign the CLA and assume responsibility for the contribution, we unfortunately cannot accept this PR. |
Summary
ui5mcp --help/-hbefore server startup and print usageui5mcp --version/-vbefore server startup and print the package versionprocess.argvbetween serial testsReproduction
With the published
@ui5/[email protected]package, metadata flags currently fail as unsupported arguments:These flags are useful for package managers, MCP client diagnostics, and quick installation checks that should not need to start the MCP server.
Verification
npm ci --ignore-scripts --no-audit --no-fund npx ava test/lib/cli.ts npm run build-test -- --pretty false npx eslint src/cli.ts test/lib/cli.ts npm run build git diff --check node bin/ui5mcp.js --help node bin/ui5mcp.js --version node bin/ui5mcp.js --definitely-not-realAfter the fix,
--help,-h,--version, and-vexit 0 without constructing the server. Unknown arguments still exit 2.