D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16409 - Add support for assign-style switches
Summary: Add support for assign-style switches
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: Andrej Mitrovic
URL:
Keywords:
: 16122 (view as issue list)
Depends on:
Blocks:
 
Reported: 2016-08-21 10:16 UTC by Andrej Mitrovic
Modified: 2016-10-01 11:48 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 Andrej Mitrovic 2016-08-21 10:16:41 UTC
Currently auto-complete in terminals doesn't work with DMD's glued swiches, e.g. typing -odsome/dir disallows tab-completion.

This similar issue https://issues.dlang.org/show_bug.cgi?id=12759 requests `-of filename` and `-od objdir` support. Even though I like that idea there is already a precedent for using `=` for switches in DMD, so this enhancement request might have a better chance of being accepted.
Comment 1 Andrej Mitrovic 2016-08-21 10:41:25 UTC
Renamed issue, I want this for -I, -J, and all other types of switches which take a path.
Comment 2 Andrej Mitrovic 2016-08-21 11:47:49 UTC
https://github.com/dlang/dmd/pull/6070
Comment 3 github-bugzilla 2016-08-22 20:03:20 UTC
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/e3c9f21acac9c086b98389185d917952e0b397cb
Fix Issue 16409 - Add support for assign switches

All switches taking values now allow the -switch=<name> syntax.
The list of new switches which support this include:

-Dd=<directory>
-Df=<filename>
-Hd=<directory>
-Hf=<filename>
-I=<directory>
-J=<directory>
-L=<linkerflag>
-od=<dirname>
-of=<objname>
-Xf=<filename>

https://github.com/dlang/dmd/commit/cf44ea035db85a7551391a6df532a671dc7c31ff
Merge pull request #6070 from AndrejMitrovic/assign-switch

Issue 16409 - Add support for assign-style switches
Comment 4 Andrej Mitrovic 2016-08-22 23:54:08 UTC
*** Issue 16122 has been marked as a duplicate of this issue. ***
Comment 5 github-bugzilla 2016-10-01 11:48:29 UTC
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/e3c9f21acac9c086b98389185d917952e0b397cb
Fix Issue 16409 - Add support for assign switches

https://github.com/dlang/dmd/commit/cf44ea035db85a7551391a6df532a671dc7c31ff
Merge pull request #6070 from AndrejMitrovic/assign-switch