[Issue 16122] New: user-friendly CLI interface for dmd
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jun 4 16:10:44 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16122
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 at puremagic.com
Reporter: greensunny12 at 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?
--
More information about the Digitalmars-d-bugs
mailing list