Thanks very much for that, I'll investigate: I admit I didn't know about that define.
I routinely insert e.g. handlers for --help and --version into the .lpr just before that point, and /so/ /far/ haven't had the IDE interfere with it. In the current case the .lpr hadn't been rewritten, it was something I'd coded on a PC with a v2.0 IDE and then moved to a newly-rebuilt Raspberry Pi where the compiler and IDE were a bit older.
Slightly later for the record: that needs an explicit import of LCLVersion.
MarkMLl