mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 10:14:21 -06:00
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.