be755dd8eb
Code-review fixes: guard pathToFileURL against undefined argv[1]; reject unrecognised flags with exit 2 before any filesystem access (prevents a --revert typo from silently applying the patch). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>