diff --git a/README.md b/README.md index 16e477410..b24910b9b 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ Install from npm (global): `npm install -g warelay` (Node 22+). Then choose **on ## Command Cheat Sheet | Command | What it does | Core flags | | --- | --- | --- | -| `warelay send` | Send a WhatsApp message (Twilio or Web) | `--to ` `--message ` `--wait ` `--poll ` `--provider twilio\|web` `--json` `--dry-run` | +| `warelay send` | Send a WhatsApp message (Twilio or Web) | `--to ` `--message ` `--wait ` `--poll ` `--provider twilio\|web` `--json` `--dry-run` `--verbose` | | `warelay relay` | Auto-reply loop (poll Twilio or listen on Web) | `--provider ` `--interval ` `--lookback ` `--verbose` | -| `warelay status` | Show recent sent/received messages | `--limit ` `--lookback ` `--json` | +| `warelay status` | Show recent sent/received messages | `--limit ` `--lookback ` `--json` `--verbose` | | `warelay webhook` | Run inbound webhook (`ingress=tailscale` updates Twilio; `none` is local-only) | `--ingress tailscale\|none` `--port ` `--path ` `--reply ` `--verbose` `--yes` `--dry-run` | | `warelay login` | Link personal WhatsApp Web via QR | `--verbose` | diff --git a/src/cli/program.ts b/src/cli/program.ts index e5a85aaa5..c94fb9202 100644 --- a/src/cli/program.ts +++ b/src/cli/program.ts @@ -63,6 +63,7 @@ export function buildProgram() { .option("--provider ", "Provider: twilio | web", "twilio") .option("--dry-run", "Print payload and skip sending", false) .option("--json", "Output result as JSON", false) + .option("--verbose", "Verbose logging", false) .addHelpText( "after", ` @@ -73,6 +74,7 @@ Examples: warelay send --to +15551234567 --message "Hi" --wait 60 --poll 3`, ) .action(async (opts) => { + setVerbose(Boolean(opts.verbose)); const deps = createDefaultDeps(); try { await sendCommand(opts, deps, defaultRuntime); @@ -151,6 +153,7 @@ Examples: .option("-l, --limit ", "Number of messages to show", "20") .option("-b, --lookback ", "How far back to fetch messages", "240") .option("--json", "Output JSON instead of text", false) + .option("--verbose", "Verbose logging", false) .addHelpText( "after", ` @@ -160,6 +163,7 @@ Examples: warelay status --json --limit 50 # machine-readable output`, ) .action(async (opts) => { + setVerbose(Boolean(opts.verbose)); const deps = createDefaultDeps(); try { await statusCommand(opts, deps, defaultRuntime);