Ok, I went back through my mail (I had an exchange with other members of the team).
As I indicated here, it is important that the command line makes it clear that there will be no build. Putting "only" into the parameter does not sufficiently do that.
The feedback I had was clearly favouring
lazbuild --action=expand-macros --text="foo($TargetOS)"
I can also live without the --text, but then the input
is not allowed to start with a dash -.
E.g
lazbuild --action=expand-macros foo($TargetOS)
But
NOT allowedlazbuild --action=expand-macros -foo($TargetOS)
lazbuild --action=expand-macros bar -foo($TargetOS)
lazbuild --action=expand-macros "-foo($TargetOS)"
E.g. after the last parameter, the remaining text is to be translated.
But since there could in future more parameters, the text can not start with a dash -, nor can any space separated part start with a dash unless quoted (in quotes the first char can not be a dash).
That is a good deal more complicated to parse...
So if you change the merge request to match the above, then I will apply it.
Mind, Next week, I will be away for a few days.