Bug 16122 – user-friendly CLI interface for dmd

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-06-04T23:10:00Z
Last change time
2016-08-22T23:54:08Z
Assigned to
nobody
Creator
greensunny12

Comments

Comment #0 by greensunny12 — 2016-06-04T23:10:44Z
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
Fixed as part of https://issues.dlang.org/show_bug.cgi?id=16409 *** This issue has been marked as a duplicate of issue 16409 ***