--- rdmd --eval 'writeln("hello world");' --- object.Exception@../phobos/std/getopt.d(689): Missing value for argument --eval. --- rdmd interprets 'writeln("hello world");' as the program file. unsatisfactory PR: https://github.com/D-Programming-Language/tools/pull/140
This works now.