File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,14 @@ int main(string[] args) {
26
26
return 1 ; // should never happen...
27
27
} if (allOtherArgs.length == 1 ) {
28
28
return Commands.run(null );
29
- } else switch (allOtherArgs[1 ]) {
29
+ } else switch (auto a = allOtherArgs[1 ]) {
30
30
foreach (memberName; __traits (allMembers, Commands))
31
- case memberName:
31
+ case memberName: {
32
32
string [] argsToSend = allOtherArgs[2 .. $];
33
- if (memberName == " build" || memberName == " test" || memberName == " publish" || memberName == " testOnly" || memberName == " check" )
33
+ if (a == " build" || a == " test" || a == " publish" || a == " testOnly" || a == " check" )
34
34
argsToSend = buildSpecificArgs ~ allOtherArgs[2 .. $];
35
35
return __traits (getMember, Commands, memberName)(argsToSend);
36
+ }
36
37
case " -h" , " --help" :
37
38
import std.stdio , std.string ;
38
39
foreach (memberName; __traits (allMembers, Commands))
You can’t perform that action at this time.
0 commit comments