Skip to content

contributor-profile CLI command doesn't support --help #6992

Description

@JSONbored

Context

contributorProfileCli (packages/loopover-mcp/bin/loopover-mcp.js:3775-3785, the CLI mirror of loopover_get_contributor_profile) has no if (options.help === true) check at all, unlike every sibling command directly around it — decisionPackCli (line 3791: if (options.help === true) return printDecisionPackHelp();), monitorOpenPrsCli (line 3821), repoDecisionCli (line 3855), and others. Running loopover-mcp contributor-profile --help falls through to the normal login-resolution path instead of printing usage, and throws "Pass --login <github-login>, log in with \loopover-mcp login`, or set LOOPOVER_LOGIN."` if no login is resolvable — a confusing error in place of help text.

Requirements

  • Add if (options.help === true) return printContributorProfileHelp(); at the top of contributorProfileCli, following the exact pattern of decisionPackCli/monitorOpenPrsCli.
  • Add a printContributorProfileHelp() function describing the command's usage, flags (--login, --json), and login-resolution precedence (--login / active session / LOOPOVER_LOGIN / GITHUB_LOGIN), following the style of printDecisionPackHelp() or another sibling help function.

Deliverables

  • contributor-profile --help prints usage instead of attempting login resolution
  • printContributorProfileHelp() function added
  • Test asserting --help short-circuits before any login resolution or network call

Test Coverage Requirements

99%+ Codecov patch coverage on every changed line and branch, plus the regression test above.

Expected Outcome

loopover-mcp contributor-profile --help behaves like every other CLI command's --help flag instead of throwing a login error.

Links & Resources

packages/loopover-mcp/bin/loopover-mcp.js:3791 (decisionPackCli's --help handling) — the pattern to follow. :3775 — the function to fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions