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
--send is parsed as no flag at all — the mode falls through to the default `send-email` branch. This works by coincidence today: anyone copying `npm start` (which has no flag) also gets send-email, so behaviour matches the script names. But:
Adding a future mode (e.g. `--dry-run`) makes `--send` look load-bearing when it isn't.
A typo like `--Send` would also "work", masking the bug.
The CLI usage block in `index.mjs` only mentions npm scripts, not raw flags — so the inconsistency is invisible from a quick read.
Suggested fix
Either:
Drop `--send` from the npm script (preferred — keep the flag set minimal):
Problem
In
pg-node/package.json:But
pg-node/index.mjs:30only inspects one flag:--sendis parsed as no flag at all — the mode falls through to the default `send-email` branch. This works by coincidence today: anyone copying `npm start` (which has no flag) also gets send-email, so behaviour matches the script names. But:Suggested fix
Either:
Option 1 is the smaller, more honest fix.
Files
pg-node/package.json—sendscriptpg-node/index.mjs:30— mode parsing