Skip to content

CLI help lists --share-usage, which no code reads since counting became the default #311

Closed

Description

@FredApps

What went wrong?

The output or a command was wrong or confusing

DiffCI version

@diffci.com/diffci 0.3.54 (packages/diffci-cli at main 40aa308)

Command you ran

diffci help

Output

Three usage lines still list --share-usage:

diffci verify ... [--share-usage] [--no-send] [--no-log] ...
diffci check  ... [--fail-on-error] [--timeout-ms <ms>] [--share-usage]
diffci observe ... [--no-send] [--share-usage] [--agent <name|auto>]

No code reads the flag. grep -rn share-usage packages/diffci-cli/src finds only those three help lines. The parser doesn't reject unknown flags, so passing --share-usage is silently ignored.

What you expected

The help should only list flags that do something. Before 0875e89 ("feat(cli): count runs by default with the repository name"), --share-usage (or DIFFCI_SHARE_USAGE=1) was the opt-in for usage reporting. That commit made counting the default, removed the flags["share-usage"] reads and the help sentence explaining the flag, but left the flag in the three synopsis lines.

The current documented behavior has no place for the flag:

  • docs/telemetry.md: counting is on by default, and only DO_NOT_TRACK=1, DIFFCI_NO_SEND=1 or DIFFCI_SHARE_USAGE=0 stop it. diffci telemetry --mode count-only|repo picks what is sent.
  • The help paragraph itself says the same.

An opt-in flag would do nothing when counting is already on. A flag that stops counting would contradict the docs, which give environment variables as the only way. So the fix is to drop --share-usage from the help. DIFFCI_SHARE_USAGE=0 stays documented as the environment switch.

Confirmations

  • The output above contains no secrets, tokens or private source code.

Activity

  1. added a commit that references this issue on Nov 18, 2026
    7b884c1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions