Removed comma support for -i (-i=a,b becomes -i=a -i=b)#7857
Removed comma support for -i (-i=a,b becomes -i=a -i=b)#7857dlang-bot merged 1 commit intodlang:masterfrom
Conversation
|
Thanks for your pull request, @marler8997! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Some tips to help speed things up:
Bear in mind that large or tricky changes may require multiple rounds of review and revision. Please see CONTRIBUTING.md for more information. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
c06cf7f to
0e7d05c
Compare
|
(If we go with this, changelog and documentation should be updated too.) |
0e7d05c to
edc0d9b
Compare
|
I've modified the changelog, and we can delay integrating the documentation PR until this PR is settled. |
edc0d9b to
c948bb6
Compare
JinShil
left a comment
There was a problem hiding this comment.
Comma or no comma is fine with me.
Really? It shouldn't be hard to do what we have in LDC, namely a generic comma separated command line option parser. |
|
totally agree and strongly support comma separated list of arguments for this flag and others. I planned to add one for Comma separated linker flags to ease adapting these from, say, clang or gcc ldc, clang and others do it for good reason. Some push back desirable here. Original cmdline design had a number of issues (eg flags without = separator eg |
I'll create a PR to see how complex this would be and we can see what Walter thinks. |
|
Ok, PR is here: https://github.com/dlang/dmd/pull/7863/files The implementation creates a struct called |
| dmd -i=-std,-core,-etc,-object | ||
| --- | ||
|
|
||
| $(CONSOLE dmd -i=-std,-core,-etc,-object) |
There was a problem hiding this comment.
I thought this syntax was removed with this PR.
There was a problem hiding this comment.
indeed, unless #7863 gets merged before we release
There was a problem hiding this comment.
Shoot, missed that one
There was a problem hiding this comment.
@ZombineDev do you want to make a PR for that one or shall I? I think at this point it's gotta be merged to the stable branch
@WalterBright has suggested that supporting multiple arguments for a single option using the comma character is "a lot of effort". He also mentions other command-line options already support multiple arguments because they can be given multiple times. This PR removes comma support for
-iso the followingmust now be specified via: