Check arguments before looking for the mnemonic (closes #79) #84

Merged
clawbot merged 1 commits from issue-79-check-arguments-first into next 2026-10-14 21:05:50 +02:00
1 Commits
Author SHA1 Message Date
sneak 1a9cc39dd2 Check arguments before looking for the mnemonic (closes #79)
check / check (push) Waiting to run
The key index, --words, the --to recipients and the input file of age encrypt and age decrypt were checked only after the mnemonic had been obtained, so a run that could not succeed still prompted for it or ran the mnemonic command. options.Index now refuses an index above derive.MaxIndex, which covers every command group; the mnemonic command calls the new childmnemonic.CheckWords first; age encrypt reads its recipients with the new agekey.Recipients, and both age commands open their input, before the key is derived. Encrypt now takes the parsed recipients. The README says which checks come first.

Model: opus-5-5
2026-10-14 18:26:16 +00:00