Issue 16409 - Add support for assign-style switches#6070
Issue 16409 - Add support for assign-style switches#6070WalterBright merged 1 commit intodlang:masterfrom
Conversation
|
|
@AndrejMitrovic, thanks for your PR! By analyzing the annotation information on this pull request, we identified @yebblies, @leandro-lucarella-sociomantic and @mathias-lang-sociomantic to be potential reviewers. @yebblies: The PR was automatically assigned to you, please reassign it if you were identified mistakenly. |
86451a6 to
3897ec1
Compare
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>
3897ec1 to
e3c9f21
Compare
Current coverage is 87.41% (diff: 100%)@@ master #6070 diff @@
==========================================
Files 96 96
Lines 55799 55799
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 48779 48779
Misses 7020 7020
Partials 0 0
|
|
So what is this new CircleCi about and can we restart it? It seems like an unrelated error: |
It runs the testsuite with coverage analysis and sends the results to CodeCov as we are already overusing Travis and the auto-tester. The failure is due to the rate-limiting of the Github Api (CircleCi doesn't expose the upstream branch against which the PR was made). Normally you can just go to CircleCi, login and restart the job, but unfortunately the rate-limit is hourly. |
|
Thanks, it's green now. |
|
Why not using space as separator? That way there are no braking changes at all and it feels more natural. |
The prime reason: consistency with the other switches. Also, I'm not sure how well this will interact with existing tools. RDMD expects a file name after which all arguments will be passed to the executable instead of the compiler. For example:
Now if we implement spaces around switches and someone calls RDMD Like so: rdmd won't know whether |
|
Btw we could just change all switches to support both spaces and |
This is just pointless complexity. |
Hehe, fair enough. Thanks for merging this! |
All switches taking values now allow the
-switch=<value>syntax.Note: The old-style -switch**Value** syntax is still supported. That being said you won't be able to use
=as an actual name of a file or directory with the old-style syntax anymore but will have to use e.g.-of==.I don't know who in their right mind would name files or directories with
=in their name, but we should add this breaking change to the change log nevertheless.The list of switches which now have this support includes:
Fixes https://issues.dlang.org/show_bug.cgi?id=16409
Tested on Ubuntu (via Win 10's bash!)