You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLI help lists --share-usage, which no code reads since counting became the default #311
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
fix(cli): drop the dead --share-usage flag from the help (DiffCI#312)