Bug 15445 – Make DMD's command-line options more compatible with other popular C/C++ compilers
Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-12-15T03:39:30Z
Last change time
2022-10-24T13:18:23Z
Assigned to
No Owner
Creator
Shriramana Sharma
Comments
Comment #0 by samjnaa — 2015-12-15T03:39:30Z
Currently DMD's command-line options are different from those of popular C-family compilers like GCC and Clang. This violates the principle of least surprise and thus makes it unnecessarily difficult for people to migrate from those languages without any significant benefit. We should try to make adopting D easier.
From http://www.unix.com/man-page/debian/1/gdc/ I note that GDC has a much more streamlined interface which provides for D's additional features but at the same time keeps the rest in line with GCC.
I request that DMD's (and thereby LDC should hopefully follow suit) command-line interface be likewise streamlined so that it can be more usable.
Notably, -of as output option i.o. -o is most awkward, but the rest are likewise too...
Comment #1 by razvan.nitu1305 — 2022-10-24T13:18:23Z
DMD has a very small list of command line switches. It is very easy to just browse through it and find what you need (as opposed to the gigantic list of the C-family compilers). Also, D has had this CLI for years no and nobody has complained about it up until now. Most languages have a different CLI, I don't see why D should follow C.