make use of GetoptResult.stoppedAt and endOfOptionsPred

This enables the alternative style of passing a value for an option:
   rdmd --eval 'writeln("Hello World!");'
Before, the code would have been mistaken for the program file.