Skip to content

fix: replace unsupported --version flag with -help in codemap setup skill#63

Merged
LeoVS09 merged 1 commit intoNeoLabHQ:masterfrom
acsezen:fix/codemap-version-flag
Mar 13, 2026
Merged

fix: replace unsupported --version flag with -help in codemap setup skill#63
LeoVS09 merged 1 commit intoNeoLabHQ:masterfrom
acsezen:fix/codemap-version-flag

Conversation

@acsezen
Copy link
Copy Markdown
Contributor

@acsezen acsezen commented Mar 12, 2026

Summary

  • Replace codemap --version with codemap -help for installation detection (step 2)
  • Remove codemap --version from verification step (step 5), keep only codemap .

Problem

The mcp:setup-codemap-cli skill uses codemap --version to check if codemap is installed and to verify the installation. However, codemap is a Go binary using Go's flag package and does not implement a --version flag. This causes an exit code 2 error:

Error: Exit code 2
flag provided but not defined: -version

The setup still works because the agent sees the usage output and infers codemap is installed, but it produces a confusing error message.

Fix

  • Step 2 (detection): codemap --versioncodemap -help
  • Step 5 (verification): removed codemap --version, kept codemap . which is a reliable functional test

…kill

codemap (Go binary) doesn't implement --version flag. Go's flag package
exits with code 2 on undefined flags. Use -help for detection and
`codemap .` for verification instead.
@LeoVS09 LeoVS09 merged commit 20695fa into NeoLabHQ:master Mar 13, 2026
@acsezen acsezen deleted the fix/codemap-version-flag branch March 13, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants