options() now refuses an option a command line gives twice, "--NAME is
given twice", before anything runs: exit status 2 and the usage
printed, as for an option the subcommand does not take. Before, the
second value replaced the first in the map with nothing said, so a
script that spliced options after its own (`--until-frame X
${PLAY_ARGS}`) played the splice's value unnoticed. The module doc and
with_options' doc say so.
docs/REPLAY-STREAM.md section 10 named the options each subcommand
takes only in part, though it said each takes "the options its usage
names". Its play synopsis now lists all twenty, adding --state-log,
--state-threads, --state-keys, --state-digests, --prepass-width and
--dump-command-buffers with --dump-dir. A paragraph after the
states-only one now says what the state options and --prepass-width do,
from the module doc. dump and shapes show [--blobs DIR]. The rule now
reads: each option once, none it does not take.
Callers audited at development 039f7a9350 for an option given twice
(the 9db78abe7d audit of unknown options covered the same callers): the
orchestration's round script and its leg scripts, every orchestration
job script that runs the player, the scripts of every carry repository
at its HEAD (104 invocations in all), the consumer's tree (no caller),
CI, CONTRIBUTING.md and the docs (none runs the player), and the
in-tree tests. No invocation names an option twice. Where options are
spliced from the environment, the values on record don't repeat an
option either: PLAY_ARGS (--check-presents), PLAYARGS (empty or
--managed two-copy) and UNTIL (becomes --until-frame, in scripts that
do not pass --until-frame themselves). Three splices have no recorded
value and stay unaudited: FS_PLAY_ARGS, EXTRA and PARGS.
Verified: the red commit's every_subcommand_refuses_an_option_given_twice
fails at its parent (lavapipe-free run, job m3-max-86867: 1 passed, 1
failed). The jobs for this commit are named in the lane's report.