Pair secret-flag registration with its env fallback

main

Commit

Soph3mo ago

Fold the empty-default StringVar and addSecretEnvFallback into a single addSecretFlag(cmd, dst, name, env, usage) call. Previously each secret flag needed two coordinated statements; a new secret flag could re-introduce the usage leak by registering an envOr default and forgetting the fallback. Pairing them makes the safe handling the only handling.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 495d629c11b1

Checkpoints

just remove .clawpatch from the commit but then just delete the folder, we don't need to keep it

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1