www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16122] New: user-friendly CLI interface for dmd


          Issue ID: 16122
           Summary: user-friendly CLI interface for dmd
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: greensunny12 gmail.com

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? --
Jun 04 2016