D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15445 - Make DMD's command-line options more compatible with other popular C/C++ compilers
Summary: Make DMD's command-line options more compatible with other popular C/C++ comp...
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-15 03:39 UTC by Shriramana Sharma
Modified: 2022-10-24 13:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Shriramana Sharma 2015-12-15 03:39:30 UTC
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 RazvanN 2022-10-24 13:18:23 UTC
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.