@remcp/remcp 0.2.203 → 0.2.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli.mjs +7 -0
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -40,6 +40,13 @@ function printHelp() {
|
|
|
40
40
|
export async function main(argv = process.argv.slice(2)) {
|
|
41
41
|
const { command, flags, positional } = parse(argv);
|
|
42
42
|
|
|
43
|
+
// Help must be side-effect free even for mutating subcommands. Older agents
|
|
44
|
+
// incorrectly treated `remcp update --help` as an update and ran npm.
|
|
45
|
+
if (command === '--help' || command === '-h' || flags.help === true || flags.h === true) {
|
|
46
|
+
printHelp();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
if (command === '--version' || command === '-v' || command === 'version') {
|
|
44
51
|
console.log(VERSION);
|
|
45
52
|
return;
|