tl;dr: I couldn't find a found to set the output file of dmd. Tested with 2.071 and git master
> dmd test.d -o bin/test
Error: -o no longer supported, use -of or -od
> dmd test_save.d -of=bin/test
> dmd test_save.d -of bin/test
Error: argument expected for switch '-of'
> dmd test_save.d -of=bin/test
creates '=bin/test'
> dmd test_save.d -od=bin -of=test
creates folder '=bin'
and binary '=test' (in current directory)
Documentation says:
-odobjdir
write object files relative to directory objdir instead of to the current directory. -op can be used if the original package hierarchy should be retained
-offilename
Set output file name to filename in the output directory. The output file can be an object file, executable file, or library file depending on the other switches.
.. so of course I now feel silly, but then again - can't we have a user friendly CLI?
Comment #1 by andrej.mitrovich — 2016-08-22T23:54:08Z