47 instantiations of CommandLineSwitches
Microsoft.Build.CommandLine.UnitTests (44)
CommandLineSwitches_Tests.cs (39)
602
CommandLineSwitches switches = new
CommandLineSwitches
();
612
CommandLineSwitches switches = new
CommandLineSwitches
();
689
CommandLineSwitches switches = new
CommandLineSwitches
();
701
CommandLineSwitches switches = new
CommandLineSwitches
();
713
CommandLineSwitches switches = new
CommandLineSwitches
();
725
CommandLineSwitches switches = new
CommandLineSwitches
();
737
CommandLineSwitches switches = new
CommandLineSwitches
();
747
CommandLineSwitches switches = new
CommandLineSwitches
();
771
CommandLineSwitches switches = new
CommandLineSwitches
();
803
CommandLineSwitches switches = new
CommandLineSwitches
();
846
CommandLineSwitches switches = new
CommandLineSwitches
();
889
CommandLineSwitches switches = new
CommandLineSwitches
();
907
CommandLineSwitches switchesLeft = new
CommandLineSwitches
();
908
CommandLineSwitches switchesRight = new
CommandLineSwitches
();
942
CommandLineSwitches switchesLeft = new
CommandLineSwitches
();
943
CommandLineSwitches switchesRight = new
CommandLineSwitches
();
966
CommandLineSwitches switchesLeft = new
CommandLineSwitches
();
973
CommandLineSwitches switchesRight1 = new
CommandLineSwitches
();
991
CommandLineSwitches switchesRight2 = new
CommandLineSwitches
();
1014
CommandLineSwitches switchesLeft = new
CommandLineSwitches
();
1021
CommandLineSwitches switchesRight = new
CommandLineSwitches
();
1052
CommandLineSwitches switchesLeft = new
CommandLineSwitches
();
1058
CommandLineSwitches switchesRight = new
CommandLineSwitches
();
1087
CommandLineSwitches switches = new
CommandLineSwitches
();
1107
CommandLineSwitches switches = new
CommandLineSwitches
();
1119
CommandLineSwitches switchesLeft = new
CommandLineSwitches
();
1125
CommandLineSwitches switchesRight = new
CommandLineSwitches
();
1211
CommandLineSwitches switches = new
CommandLineSwitches
();
1217
switches = new
CommandLineSwitches
();
1266
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
1281
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
1306
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
1329
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
1351
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
1368
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
1388
CommandLineSwitches commandLineSwitches =
new
();
1393
commandLineSwitches =
new
();
1408
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
1433
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
XMake_Tests.cs (5)
52
CommandLineSwitches switches = new
CommandLineSwitches
();
67
var switches = new
CommandLineSwitches
();
84
CommandLineSwitches switches = new
CommandLineSwitches
();
101
CommandLineSwitches switches = new
CommandLineSwitches
();
121
CommandLineSwitches switches = new
CommandLineSwitches
();
MSBuild (3)
XMake.cs (3)
2011
switchesNotFromAutoResponseFile = new
CommandLineSwitches
();
2016
switchesFromAutoResponseFile = new
CommandLineSwitches
();
3018
CommandLineSwitches commandLineSwitches = new
CommandLineSwitches
();
383 references to CommandLineSwitches
Microsoft.Build.CommandLine.UnitTests (250)
CommandLineSwitches_Tests.cs (240)
37
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch;
40
CommandLineSwitches
.IsParameterlessSwitch("bogus", out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeFalse();
41
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterlessSwitch.Invalid);
44
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
50
CommandLineSwitches
.IsParameterizedSwitch("bogus", out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeFalse();
51
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.Invalid);
67
CommandLineSwitches
.IsParameterlessSwitch(help, out
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch, out string duplicateSwitchErrorMessage).ShouldBeTrue();
68
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterlessSwitch.Help);
81
CommandLineSwitches
.IsParameterlessSwitch(version, out
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch, out string duplicateSwitchErrorMessage).ShouldBeTrue();
82
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterlessSwitch.Version);
92
CommandLineSwitches
.IsParameterlessSwitch(nologo, out
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch, out string duplicateSwitchErrorMessage).ShouldBeTrue();
93
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterlessSwitch.NoLogo);
106
CommandLineSwitches
.IsParameterlessSwitch(noautoresponse, out
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch, out string duplicateSwitchErrorMessage).ShouldBeTrue();
107
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterlessSwitch.NoAutoResponse);
120
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch;
123
CommandLineSwitches
.IsParameterlessSwitch(noconsolelogger, out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeTrue();
124
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger);
136
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch;
139
CommandLineSwitches
.IsParameterlessSwitch(filelogger, out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeTrue();
140
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterlessSwitch.FileLogger);
152
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch;
155
CommandLineSwitches
.IsParameterlessSwitch(distributedfilelogger, out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeTrue();
156
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterlessSwitch.DistributedFileLogger);
173
CommandLineSwitches
.ParameterizedSwitch parameterlessSwitch;
176
CommandLineSwitches
.IsParameterizedSwitch(terminallogger, out parameterlessSwitch, out duplicateSwitchErrorMessage, out bool multipleParametersAllowed, out string missingParametersErrorMessage, out bool unquoteParameters, out bool emptyParametersAllowed).ShouldBeTrue();
177
parameterlessSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.TerminalLogger);
192
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
199
CommandLineSwitches
.IsParameterizedSwitch(fileloggerparameters, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
200
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.FileLoggerParameters);
214
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
221
CommandLineSwitches
.IsParameterizedSwitch(terminalLoggerParameters, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
222
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.TerminalLoggerParameters);
237
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
244
CommandLineSwitches
.IsParameterizedSwitch(nodereuse, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
245
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.NodeReuse);
256
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
263
Assert.True(
CommandLineSwitches
.IsParameterizedSwitch(null, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed));
264
Assert.Equal(
CommandLineSwitches
.ParameterizedSwitch.Project, parameterizedSwitch);
271
Assert.False(
CommandLineSwitches
.IsParameterizedSwitch(String.Empty, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed));
272
Assert.Equal(
CommandLineSwitches
.ParameterizedSwitch.Invalid, parameterizedSwitch);
287
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
294
CommandLineSwitches
.IsParameterizedSwitch(ignoreprojectextensions, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
295
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.IgnoreProjectExtensions);
310
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
317
CommandLineSwitches
.IsParameterizedSwitch(target, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
318
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.Target);
333
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
340
CommandLineSwitches
.IsParameterizedSwitch(property, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
341
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.Property);
356
CommandLineSwitches
.IsParameterizedSwitch(property, out
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch, out string duplicateSwitchErrorMessage, out bool multipleParametersAllowed, out string missingParametersErrorMessage, out bool unquoteParameters, out bool emptyParametersAllowed).ShouldBeTrue();
357
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.RestoreProperty);
372
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
379
CommandLineSwitches
.IsParameterizedSwitch(logger, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
380
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.Logger);
395
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
402
CommandLineSwitches
.IsParameterizedSwitch(verbosity, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
403
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.Verbosity);
419
CommandLineSwitches
.IsParameterizedSwitch(
427
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.DetailedSummary);
442
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
449
CommandLineSwitches
.IsParameterizedSwitch(maxcpucount, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
450
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.MaxCPUCount);
488
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
495
CommandLineSwitches
.IsParameterizedSwitch(preprocess, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
496
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.Preprocess);
506
CommandLineSwitches
.IsParameterizedSwitch(
508
out
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch,
515
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.GetProperty);
524
CommandLineSwitches
.IsParameterizedSwitch(
526
out
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch,
533
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.GetItem);
542
CommandLineSwitches
.IsParameterizedSwitch(
544
out
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch,
551
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.GetTargetResult);
563
CommandLineSwitches
.IsParameterizedSwitch(
571
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.Targets);
584
CommandLineSwitches
.IsParameterizedSwitch(
586
out
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch,
593
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.FeatureAvailability);
602
CommandLineSwitches
switches = new CommandLineSwitches();
606
switches[
CommandLineSwitches
.ParameterizedSwitch.Targets].ShouldBe(new[] { "targets.txt" });
612
CommandLineSwitches
switches = new CommandLineSwitches();
625
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
632
CommandLineSwitches
.IsParameterizedSwitch(isolateprojects, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
633
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.IsolateProjects);
648
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch;
655
CommandLineSwitches
.IsParameterizedSwitch(graph, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue();
656
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.GraphBuild);
671
CommandLineSwitches
.IsParameterizedSwitch(lowpriority,
672
out
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch,
678
parameterizedSwitch.ShouldBe(
CommandLineSwitches
.ParameterizedSwitch.LowPriority);
689
CommandLineSwitches
switches = new CommandLineSwitches();
693
switches[
CommandLineSwitches
.ParameterizedSwitch.GraphBuild].ShouldBe(new[] { "true", " NoBuild ", " ", "foo" });
701
CommandLineSwitches
switches = new CommandLineSwitches();
705
switches[
CommandLineSwitches
.ParameterizedSwitch.GraphBuild].ShouldBe(Array.Empty<string>());
713
CommandLineSwitches
switches = new CommandLineSwitches();
717
switches[
CommandLineSwitches
.ParameterizedSwitch.InputResultsCaches].ShouldBe(new[] { null, "a", "b", "c", "d" });
725
CommandLineSwitches
switches = new CommandLineSwitches();
729
switches[
CommandLineSwitches
.ParameterizedSwitch.OutputResultsCache].ShouldBe(new[] { "a" });
737
CommandLineSwitches
switches = new CommandLineSwitches();
747
CommandLineSwitches
switches = new CommandLineSwitches();
749
switches.SetParameterlessSwitch(
CommandLineSwitches
.ParameterlessSwitch.NoLogo, "/nologo");
751
Assert.Equal("/nologo", switches.GetParameterlessSwitchCommandLineArg(
CommandLineSwitches
.ParameterlessSwitch.NoLogo));
752
Assert.True(switches.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.NoLogo));
753
Assert.True(switches[
CommandLineSwitches
.ParameterlessSwitch.NoLogo]);
756
switches.SetParameterlessSwitch(
CommandLineSwitches
.ParameterlessSwitch.NoLogo, "-NOLOGO");
758
Assert.Equal("-NOLOGO", switches.GetParameterlessSwitchCommandLineArg(
CommandLineSwitches
.ParameterlessSwitch.NoLogo));
759
Assert.True(switches.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.NoLogo));
760
Assert.True(switches[
CommandLineSwitches
.ParameterlessSwitch.NoLogo]);
763
Assert.Null(switches.GetParameterlessSwitchCommandLineArg(
CommandLineSwitches
.ParameterlessSwitch.Version));
764
Assert.False(switches.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.Version));
765
Assert.False(switches[
CommandLineSwitches
.ParameterlessSwitch.Version]);
771
CommandLineSwitches
switches = new CommandLineSwitches();
773
Assert.True(switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Verbosity, "/v:q", "q", false, true, false));
775
Assert.Equal("/v:q", switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Verbosity));
776
Assert.True(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Verbosity));
778
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Verbosity];
786
Assert.True(switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Verbosity, "/verbosity:\"diag\";minimal", "\"diag\";minimal", true, true, false));
788
Assert.Equal("/v:q /verbosity:\"diag\";minimal", switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Verbosity));
789
Assert.True(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Verbosity));
791
parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Verbosity];
803
CommandLineSwitches
switches = new CommandLineSwitches();
806
Assert.Null(switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Target));
807
Assert.False(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
809
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Target];
816
Assert.False(switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Target, "/t:\"", "\"", false, true, false));
819
Assert.Equal("/t:\"", switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Target));
820
Assert.True(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
822
parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Target];
829
Assert.False(switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Target, "/t:A,\"\";B", "A,\"\";B", true, true, false));
831
Assert.Equal("/t:\" /t:A,\"\";B", switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Target));
832
Assert.True(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
834
parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Target];
846
CommandLineSwitches
switches = new CommandLineSwitches();
849
Assert.Null(switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Logger));
850
Assert.False(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Logger));
852
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Logger];
858
Assert.True(switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Logger, "/l:\"", "\"", false, false, false));
860
Assert.Equal("/l:\"", switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Logger));
861
Assert.True(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Logger));
863
parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Logger];
871
Assert.True(switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Logger, "/LOGGER:\"\",asm;\"p,a;r\"", "\"\",asm;\"p,a;r\"", true, false, false));
873
Assert.Equal("/l:\" /LOGGER:\"\",asm;\"p,a;r\"", switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Logger));
874
Assert.True(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Logger));
876
parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Logger];
889
CommandLineSwitches
switches = new CommandLineSwitches();
891
Assert.True(switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.WarningsAsErrors, "/warnaserror", "", multipleParametersAllowed: true, unquoteParameters: false, emptyParametersAllowed: true));
893
Assert.True(switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.WarningsAsErrors));
895
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.WarningsAsErrors];
907
CommandLineSwitches
switchesLeft = new CommandLineSwitches();
908
CommandLineSwitches
switchesRight = new CommandLineSwitches();
942
CommandLineSwitches
switchesLeft = new CommandLineSwitches();
943
CommandLineSwitches
switchesRight = new CommandLineSwitches();
966
CommandLineSwitches
switchesLeft = new CommandLineSwitches();
968
switchesLeft.SetParameterlessSwitch(
CommandLineSwitches
.ParameterlessSwitch.Help, "/?");
970
Assert.True(switchesLeft.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.Help));
971
Assert.False(switchesLeft.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger));
973
CommandLineSwitches
switchesRight1 = new CommandLineSwitches();
975
switchesRight1.SetParameterlessSwitch(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger, "/noconlog");
977
Assert.False(switchesRight1.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.Help));
978
Assert.True(switchesRight1.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger));
982
Assert.Equal("/noconlog", switchesLeft.GetParameterlessSwitchCommandLineArg(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger));
983
Assert.True(switchesLeft.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger));
984
Assert.True(switchesLeft[
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger]);
987
Assert.Equal("/?", switchesLeft.GetParameterlessSwitchCommandLineArg(
CommandLineSwitches
.ParameterlessSwitch.Help));
988
Assert.True(switchesLeft.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.Help));
989
Assert.True(switchesLeft[
CommandLineSwitches
.ParameterlessSwitch.Help]);
991
CommandLineSwitches
switchesRight2 = new CommandLineSwitches();
993
switchesRight2.SetParameterlessSwitch(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger, "/NOCONSOLELOGGER");
995
Assert.False(switchesRight2.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.Help));
996
Assert.True(switchesRight2.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger));
1000
Assert.Equal("/NOCONSOLELOGGER", switchesLeft.GetParameterlessSwitchCommandLineArg(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger));
1001
Assert.True(switchesLeft.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger));
1002
Assert.True(switchesLeft[
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger]);
1004
Assert.Equal("/?", switchesLeft.GetParameterlessSwitchCommandLineArg(
CommandLineSwitches
.ParameterlessSwitch.Help));
1005
Assert.True(switchesLeft.IsParameterlessSwitchSet(
CommandLineSwitches
.ParameterlessSwitch.Help));
1006
Assert.True(switchesLeft[
CommandLineSwitches
.ParameterlessSwitch.Help]);
1014
CommandLineSwitches
switchesLeft = new CommandLineSwitches();
1016
switchesLeft.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Project, "tempproject.proj", "tempproject.proj", false, true, false);
1018
Assert.True(switchesLeft.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Project));
1019
Assert.False(switchesLeft.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
1021
CommandLineSwitches
switchesRight = new CommandLineSwitches();
1023
switchesRight.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Target, "/t:build", "build", true, true, false);
1025
Assert.False(switchesRight.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Project));
1026
Assert.True(switchesRight.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
1030
Assert.Equal("tempproject.proj", switchesLeft.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Project));
1031
Assert.True(switchesLeft.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Project));
1033
string[] parameters = switchesLeft[
CommandLineSwitches
.ParameterizedSwitch.Project];
1039
Assert.Equal("/t:build", switchesLeft.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Target));
1040
Assert.True(switchesLeft.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
1042
parameters = switchesLeft[
CommandLineSwitches
.ParameterizedSwitch.Target];
1052
CommandLineSwitches
switchesLeft = new CommandLineSwitches();
1054
switchesLeft.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Target, "/target:Clean", "Clean", true, true, false);
1056
Assert.True(switchesLeft.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
1058
CommandLineSwitches
switchesRight = new CommandLineSwitches();
1060
switchesRight.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Target, "/t:\"RESOURCES\";build", "\"RESOURCES\";build", true, true, false);
1062
Assert.True(switchesRight.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
1066
Assert.Equal("/t:\"RESOURCES\";build", switchesLeft.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Target));
1067
Assert.True(switchesLeft.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target));
1069
string[] parameters = switchesLeft[
CommandLineSwitches
.ParameterizedSwitch.Target];
1087
CommandLineSwitches
switches = new CommandLineSwitches();
1088
switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Target, commandLineArg, switchParameters, true, true, false);
1089
switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target).ShouldBeTrue();
1091
switches[
CommandLineSwitches
.ParameterizedSwitch.Target].Length.ShouldBe(2);
1092
switches[
CommandLineSwitches
.ParameterizedSwitch.Target][0].ShouldBe("Clean");
1093
switches[
CommandLineSwitches
.ParameterizedSwitch.Target][1].ShouldBe("Build");
1094
switches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Target).ShouldBe(commandLineArg);
1107
CommandLineSwitches
switches = new CommandLineSwitches();
1108
switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Target, "/t:Clean;Build", "\"Clean;Build\"", true, true, false);
1109
switches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Target).ShouldBeTrue();
1111
switches[
CommandLineSwitches
.ParameterizedSwitch.Target].Length.ShouldBe(1);
1112
switches[
CommandLineSwitches
.ParameterizedSwitch.Target][0].ShouldBe("Clean;Build");
1119
CommandLineSwitches
switchesLeft = new CommandLineSwitches();
1121
switchesLeft.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Project, "tempproject.proj", "tempproject.proj", false, true, false);
1123
Assert.True(switchesLeft.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Project));
1125
CommandLineSwitches
switchesRight = new CommandLineSwitches();
1127
switchesRight.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Project, "Rhubarb.proj", "Rhubarb.proj", false, true, false);
1129
Assert.True(switchesRight.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Project));
1133
Assert.Equal("tempproject.proj", switchesLeft.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.Project));
1134
Assert.True(switchesLeft.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Project));
1136
string[] parameters = switchesLeft[
CommandLineSwitches
.ParameterizedSwitch.Project];
1211
CommandLineSwitches
switches = new CommandLineSwitches();
1213
switches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Verbosity, "/v:q", "q", false, true, false);
1219
switches.SetParameterlessSwitch(
CommandLineSwitches
.ParameterlessSwitch.Help, "/?");
1266
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
1281
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
1306
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
1329
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
1351
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
1368
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
1388
CommandLineSwitches
commandLineSwitches = new();
1408
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
1433
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
1436
commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.ProfileEvaluation][0].ShouldBe("no-file");
1601
private void VerifySwitchError(
CommandLineSwitches
switches, string badCommandLineArg, string expectedMessage = null)
XMake_Tests.cs (10)
52
CommandLineSwitches
switches = new CommandLineSwitches();
59
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Property];
67
var
switches = new CommandLineSwitches();
76
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.Property];
84
CommandLineSwitches
switches = new CommandLineSwitches();
91
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.MaxCPUCount];
101
CommandLineSwitches
switches = new CommandLineSwitches();
108
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.MaxCPUCount];
121
CommandLineSwitches
switches = new CommandLineSwitches();
128
string[] parameters = switches[
CommandLineSwitches
.ParameterizedSwitch.MaxCPUCount];
MSBuild (133)
CommandLineSwitches.cs (1)
906
internal void Append(
CommandLineSwitches
switchesToAppend, string commandLine = "")
XMake.cs (132)
319
GatherAllSwitches(commandLine, out
var
switchesFromAutoResponseFile, out
var
switchesNotFromAutoResponseFile, out string fullCommandLine);
320
CommandLineSwitches
commandLineSwitches = CombineSwitchesRespectingPriority(switchesFromAutoResponseFile, switchesNotFromAutoResponseFile, fullCommandLine);
325
string projectFile = ProcessProjectSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Project], commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.IgnoreProjectExtensions], Directory.GetFiles);
326
if (commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.Help] ||
327
commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.NodeMode) ||
328
commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.Version] ||
330
!ProcessNodeReuseSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.NodeReuse]) ||
353
private static bool IsInteractiveBuild(
CommandLineSwitches
commandLineSwitches)
356
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Interactive) &&
357
ProcessBooleanSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Interactive], true, "InvalidInteractiveValue"))
363
foreach (string parameter in commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Property])
740
GatherAllSwitches(commandLine, out
var
switchesFromAutoResponseFile, out
var
switchesNotFromAutoResponseFile, out _);
790
CommandLineSwitches
.SwitchesFromResponseFiles = null;
799
&& switchesNotFromAutoResponseFile[
CommandLineSwitches
.ParameterizedSwitch.MaxCPUCount].Length == 0
800
&& switchesFromAutoResponseFile[
CommandLineSwitches
.ParameterizedSwitch.MaxCPUCount].Length == 0
1225
CommandLineSwitches
.SwitchesFromResponseFiles = new();
1430
Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"),
CommandLineSwitches
.ParameterizedSwitch.Preprocess);
1451
Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"),
CommandLineSwitches
.ParameterizedSwitch.Targets);
1976
out
CommandLineSwitches
switchesFromAutoResponseFile, out
CommandLineSwitches
switchesNotFromAutoResponseFile, out string fullCommandLine)
2017
if (!switchesNotFromAutoResponseFile[
CommandLineSwitches
.ParameterlessSwitch.NoAutoResponse])
2030
internal static void GatherCommandLineSwitches(List<string> commandLineArgs,
CommandLineSwitches
commandLineSwitches, string commandLine = "")
2105
if (
CommandLineSwitches
.IsParameterlessSwitch(switchName, out var parameterlessSwitch, out var duplicateSwitchErrorMessage))
2109
else if (
CommandLineSwitches
.IsParameterizedSwitch(switchName, out var parameterizedSwitch, out duplicateSwitchErrorMessage, out var multipleParametersAllowed, out var missingParametersErrorMessage, out var unquoteParameters, out var allowEmptyParameters))
2201
private static void GatherResponseFileSwitch(string unquotedCommandLineArg,
CommandLineSwitches
commandLineSwitches, string commandLine)
2266
CommandLineSwitches
.SwitchesFromResponseFiles.Add((responseFile, string.Join(" ", argsFromResponseFile)));
2299
CommandLineSwitches
commandLineSwitches,
2300
CommandLineSwitches
.ParameterlessSwitch parameterlessSwitch,
2339
CommandLineSwitches
commandLineSwitches,
2340
CommandLineSwitches
.ParameterizedSwitch parameterizedSwitch,
2361
if (parameterizedSwitch ==
CommandLineSwitches
.ParameterizedSwitch.Project && IsEnvironmentVariable(switchParameters))
2433
private static bool GatherAutoResponseFileSwitches(string path,
CommandLineSwitches
switchesFromAutoResponseFile, string commandLine)
2439
private static bool GatherAutoResponseFileSwitchesFromFullPath(string autoResponseFile,
CommandLineSwitches
switchesFromAutoResponseFile, string commandLine)
2450
if (switchesFromAutoResponseFile[
CommandLineSwitches
.ParameterlessSwitch.NoAutoResponse])
2453
switchesFromAutoResponseFile.GetParameterlessSwitchCommandLineArg(
CommandLineSwitches
.ParameterlessSwitch.NoAutoResponse), commandLine);
2475
CommandLineSwitches
switchesFromAutoResponseFile,
2476
CommandLineSwitches
switchesNotFromAutoResponseFile,
2521
CommandLineSwitches
commandLineSwitches = CombineSwitchesRespectingPriority(switchesFromAutoResponseFile, switchesNotFromAutoResponseFile, commandLine);
2524
if (commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.WaitForDebugger])
2552
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.LowPriority))
2554
lowPriority = ProcessBooleanSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.LowPriority], defaultValue: true, resourceName: "InvalidLowPriorityValue");
2576
if (commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.Help])
2580
else if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.NodeMode))
2590
if (commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.Version])
2595
else if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.FeatureAvailability))
2597
ShowFeatureAvailability(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.FeatureAvailability]);
2656
projectFile = ProcessProjectSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Project], commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.IgnoreProjectExtensions], Directory.GetFiles);
2659
targets = ProcessTargetSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Target]);
2662
getProperty = commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.GetProperty] ?? [];
2663
getItem = commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.GetItem] ?? [];
2664
getTargetResult = commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.GetTargetResult] ?? [];
2665
getResultOutputFile = commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.GetResultOutputFile].FirstOrDefault() ?? string.Empty;
2670
commandLineSwitches.SetParameterizedSwitch(
CommandLineSwitches
.ParameterizedSwitch.Verbosity, "q", "q", true, true, true);
2676
toolsVersion = ProcessToolsVersionSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.ToolsVersion]);
2679
globalProperties = ProcessPropertySwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Property]);
2682
restoreProperties = ProcessPropertySwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.RestoreProperty]);
2685
cpuCount = ProcessMaxCPUCountSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.MaxCPUCount]);
2689
enableNodeReuse = ProcessNodeReuseSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.NodeReuse]);
2693
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Preprocess))
2695
preprocessWriter = ProcessPreprocessSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Preprocess]);
2700
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Targets))
2702
targetsWriter = ProcessTargetsSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Targets]);
2711
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Restore))
2713
enableRestore = ProcessBooleanSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Restore], defaultValue: true, resourceName: "InvalidRestoreValue");
2716
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Interactive))
2718
interactive = ProcessBooleanSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Interactive], defaultValue: true, resourceName: "InvalidInteractiveValue");
2721
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.IsolateProjects))
2723
isolateProjects = ProcessIsolateProjectsSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.IsolateProjects]);
2726
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.GraphBuild))
2728
graphBuild = ProcessGraphBuildSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.GraphBuild]);
2731
question = commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Question);
2743
commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Logger],
2744
commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.DistributedLogger],
2745
commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Verbosity],
2746
commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.NoConsoleLogger],
2747
commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.DistributedFileLogger],
2750
commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.FileLoggerParameters], // used by DistributedFileLogger
2751
commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.ConsoleLoggerParameters],
2752
commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.BinaryLogger],
2753
commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.ProfileEvaluation],
2769
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.DetailedSummary))
2771
detailedSummary = ProcessBooleanSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.DetailedSummary], defaultValue: true, resourceName: "InvalidDetailedSummaryValue");
2791
if (commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.WarningsNotAsErrors) &&
2795
commandLineSwitches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.WarningsNotAsErrors),
2807
private static bool IsBuildCheckEnabled(
CommandLineSwitches
commandLineSwitches)
2810
bool isBuildCheckEnabled = commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Check);
2814
private static bool ProcessTerminalLoggerConfiguration(
CommandLineSwitches
commandLineSwitches, out string aggregatedParameters)
2900
bool TryFromCommandLine(
CommandLineSwitches
commandLineSwitches1)
2902
if (!commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.TerminalLogger))
2908
string[] switches = commandLineSwitches1[
CommandLineSwitches
.ParameterizedSwitch.TerminalLogger];
2974
string AggregateParameters(
CommandLineSwitches
switches)
2976
string[] terminalLoggerParameters = switches[
CommandLineSwitches
.ParameterizedSwitch.TerminalLoggerParameters];
3011
private static
CommandLineSwitches
CombineSwitchesRespectingPriority(
CommandLineSwitches
switchesFromAutoResponseFile,
CommandLineSwitches
switchesNotFromAutoResponseFile, string commandLine)
3018
CommandLineSwitches
commandLineSwitches = new CommandLineSwitches();
3053
private static bool CheckAndGatherProjectAutoResponseFile(
CommandLineSwitches
switchesFromAutoResponseFile,
CommandLineSwitches
commandLineSwitches, bool recursing, string commandLine)
3057
var projectDirectory = GetProjectDirectory(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.Project]);
3059
if (!recursing && !commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.NoAutoResponse])
3077
private static bool WarningsAsErrorsSwitchIsEmpty(
CommandLineSwitches
commandLineSwitches)
3079
string val = commandLineSwitches.GetParameterizedSwitchCommandLineArg(
CommandLineSwitches
.ParameterizedSwitch.WarningsAsErrors);
3153
private static string ProcessOutputResultsCache(
CommandLineSwitches
commandLineSwitches)
3155
return commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.OutputResultsCache)
3156
? commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.OutputResultsCache].FirstOrDefault(p => p != null) ?? string.Empty
3160
private static string[] ProcessInputResultsCaches(
CommandLineSwitches
commandLineSwitches)
3162
return commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.InputResultsCaches)
3163
? commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.InputResultsCaches].Where(p => p != null).ToArray()
3253
private static ISet<string> ProcessWarningRelatedSwitch(
CommandLineSwitches
commandLineSwitches,
CommandLineSwitches
.ParameterizedSwitch warningSwitch)
3282
internal static ISet<string> ProcessWarnAsErrorSwitch(
CommandLineSwitches
commandLineSwitches)
3284
return ProcessWarningRelatedSwitch(commandLineSwitches,
CommandLineSwitches
.ParameterizedSwitch.WarningsAsErrors);
3287
internal static ISet<string> ProcessWarnAsMessageSwitch(
CommandLineSwitches
commandLineSwitches)
3289
return ProcessWarningRelatedSwitch(commandLineSwitches,
CommandLineSwitches
.ParameterizedSwitch.WarningsAsMessages);
3292
internal static ISet<string> ProcessWarnNotAsErrorSwitch(
CommandLineSwitches
commandLineSwitches)
3294
return ProcessWarningRelatedSwitch(commandLineSwitches,
CommandLineSwitches
.ParameterizedSwitch.WarningsNotAsErrors);
3376
private static void StartLocalNode(
CommandLineSwitches
commandLineSwitches, bool lowpriority)
3378
string[] input = commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.NodeMode];
3409
bool nodeReuse = ProcessNodeReuseSwitch(commandLineSwitches[
CommandLineSwitches
.ParameterizedSwitch.NodeReuse]);
4556
private static void DisplayVersionMessageIfNeeded(bool recursing, bool useTerminalLogger,
CommandLineSwitches
commandLineSwitches)
4567
bool shouldShowLogo = !commandLineSwitches[
CommandLineSwitches
.ParameterlessSwitch.NoLogo] &&
4568
!commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.Preprocess) &&
4569
!commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.GetProperty) &&
4570
!commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.GetItem) &&
4571
!commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.GetTargetResult) &&
4572
!commandLineSwitches.IsParameterizedSwitchSet(
CommandLineSwitches
.ParameterizedSwitch.FeatureAvailability) &&
4592
foreach (string parameterizedSwitchRsouceId in
CommandLineSwitches
.GetParameterizedSwitchResourceIds())
4596
foreach (string parameterlessSwitchRsouceId in
CommandLineSwitches
.GetParameterlessSwitchResourceIds())