Files
gridcraft/apps
skylartaylor 1cf61ebf48 nightly: only options before -- name the control channel
The nightly control guard scanned the whole argv, so a document named `--control` after the
separator was read as the flag and the launch was refused with exit 2: a nightly handed
`-- --control` could not open that file.

`nightly_control_refused` now looks only at the tokens before `--`; everything after it stays a file,
as `desktop_args` already treats it. Three cases in `launch_separator_tests` cover `-- --control`
(the file opens, no port), `--control 7979 -- a.file` and `--control 7979` (the port is set and the
file still opens), plus the stable app keeping its channel.

cargo clippy -p gridcraft --all-targets -- -D warnings is clean; cargo test -p gridcraft --bin
gridcraft launch_separator_tests passes all five.
2026-11-26 09:57:16 +01:00
..