773 references to GetValue
aspire (188)
Commands\AddCommand.cs (3)
106
var version = parseResult.
GetValue
(s_versionOption);
107
var source = parseResult.
GetValue
(s_sourceOption);
108
var includeAllIntegrations = parseResult.
GetValue
(s_allOption);
Commands\AgentMcpCommand.cs (2)
92
var dashboardUrl = parseResult.
GetValue
(s_dashboardUrlOption);
93
var apiKey = parseResult.
GetValue
(s_apiKeyOption);
Commands\AgentTelemetryCommand.cs (7)
134
AddIfValid(tags, TelemetryConstants.Tags.AgentEventType, parseResult.
GetValue
(_eventTypeOption), static v => s_knownEventTypes.Contains(v, StringComparer.Ordinal));
135
AddIfValid(tags, TelemetryConstants.Tags.AgentClientName, parseResult.
GetValue
(_clientNameOption), static v => IsSafeIdentifier(v, maxLength: 64));
136
AddIfValid(tags, TelemetryConstants.Tags.AgentSessionId, parseResult.
GetValue
(_sessionIdOption), static v => IsSafeIdentifier(v, maxLength: 128));
137
AddIfValid(tags, TelemetryConstants.Tags.AgentSkillName, parseResult.
GetValue
(_skillNameOption), static v => IsSafeIdentifier(v, maxLength: 128));
138
AddIfValid(tags, TelemetryConstants.Tags.AgentToolName, parseResult.
GetValue
(_toolNameOption), static v => IsSafeIdentifier(v, maxLength: 128));
139
AddIfValid(tags, TelemetryConstants.Tags.AgentFileReference, parseResult.
GetValue
(_fileReferenceOption), IsSafeReference);
140
AddIfValid(tags, TelemetryConstants.Tags.AgentEventTimestamp, parseResult.
GetValue
(_timestampOption), IsValidTimestamp);
Commands\ApiGetCommand.cs (1)
51
var format = parseResult.
GetValue
(s_formatOption);
Commands\ApiListCommand.cs (1)
53
var format = parseResult.
GetValue
(s_formatOption);
Commands\ApiSearchCommand.cs (3)
65
var language = parseResult.
GetValue
(s_languageOption);
66
var format = parseResult.
GetValue
(s_formatOption);
67
var limit = Math.Clamp(parseResult.
GetValue
(s_limitOption) ?? 5, 1, 10);
Commands\AppHostLauncher.cs (1)
100
? parseResult.
GetValue
(s_isolatedOption)
Commands\BaseCommand.cs (1)
269
return parseResult.
GetValue
(formatOption) == OutputFormat.Json;
Commands\ConfigCommand.cs (3)
136
var isGlobal = parseResult.
GetValue
(s_globalOption);
214
var showAll = parseResult.
GetValue
(s_allOption);
372
var isGlobal = parseResult.
GetValue
(s_globalOption);
Commands\DashboardRunCommand.cs (3)
122
var allowAnonymous = parseResult.
GetValue
(s_allowAnonymousOption);
210
? parseResult.
GetValue
(option)
235
var value = parseResult.
GetValue
(option);
Commands\DeployCommand.cs (4)
46
var clearCache = parseResult.
GetValue
(_clearCacheOption);
53
var logLevel = parseResult.
GetValue
(s_pipelineLogLevelOption);
60
var includeExceptionDetails = parseResult.
GetValue
(s_includeExceptionDetailsOption);
66
var environment = parseResult.
GetValue
(s_environmentOption);
Commands\DescribeCommand.cs (4)
130
var follow = parseResult.
GetValue
(s_followOption);
131
var format = parseResult.
GetValue
(s_formatOption);
132
var includeHidden = parseResult.
GetValue
(s_includeHiddenOption);
133
var includeDisabledCommands = parseResult.
GetValue
(s_includeDisabledCommandsOption);
Commands\DestroyCommand.cs (4)
48
var yes = parseResult.
GetValue
(_yesOption);
54
var logLevel = parseResult.
GetValue
(s_pipelineLogLevelOption);
60
var includeExceptionDetails = parseResult.
GetValue
(s_includeExceptionDetailsOption);
66
var environment = parseResult.
GetValue
(s_environmentOption);
Commands\DoCommand.cs (6)
68
var operation = parseResult.
GetValue
(s_listStepsOption) ? "inspect" : "publish";
72
&& !parseResult.
GetValue
(s_listStepsOption)
92
var logLevel = parseResult.
GetValue
(s_pipelineLogLevelOption);
98
var includeExceptionDetails = parseResult.
GetValue
(s_includeExceptionDetailsOption);
104
var environment = parseResult.
GetValue
(s_environmentOption);
121
if (parseResult.
GetValue
(s_listStepsOption))
Commands\DocsGetCommand.cs (2)
56
var section = parseResult.
GetValue
(s_sectionOption);
57
var format = parseResult.
GetValue
(s_formatOption);
Commands\DocsListCommand.cs (1)
45
var format = parseResult.
GetValue
(s_formatOption);
Commands\DocsSearchCommand.cs (2)
58
var format = parseResult.
GetValue
(s_formatOption);
59
var limit = Math.Clamp(parseResult.
GetValue
(s_limitOption) ?? 5, 1, 10);
Commands\DoctorCommand.cs (2)
61
var format = parseResult.
GetValue
(s_formatOption);
62
var selfOnly = parseResult.
GetValue
(s_selfOption);
Commands\ExportCommand.cs (4)
78
var outputPath = parseResult.
GetValue
(s_outputOption);
79
var dashboardUrl = parseResult.
GetValue
(s_dashboardUrlOption);
80
var apiKey = parseResult.
GetValue
(s_apiKeyOption);
81
var includeHidden = parseResult.
GetValue
(s_includeHiddenOption);
Commands\InitCommand.cs (4)
117
var explicitLanguage = parseResult.
GetValue
(_languageOption);
203
DisplayDeprecatedOptionWarningIfProvided(parseResult.
GetValue
(s_sourceOption), "--source");
204
DisplayDeprecatedOptionWarningIfProvided(parseResult.
GetValue
(s_versionOption), "--version");
205
DisplayDeprecatedOptionWarningIfProvided(parseResult.
GetValue
(_channelOption), "--channel");
Commands\IntegrationSearchCommand.cs (2)
58
var format = parseResult.
GetValue
(_formatOption);
59
var includeAllIntegrations = parseResult.
GetValue
(_allOption);
Commands\LogsCommand.cs (6)
148
var follow = parseResult.
GetValue
(s_followOption);
149
var format = parseResult.
GetValue
(s_formatOption);
150
var tail = parseResult.
GetValue
(s_tailOption);
151
var timestamps = parseResult.
GetValue
(s_timestampsOption);
152
var includeHidden = parseResult.
GetValue
(s_includeHiddenOption);
153
var search = parseResult.
GetValue
(s_searchOption);
Commands\LsCommand.cs (3)
75
var format = parseResult.
GetValue
(s_formatOption);
76
var includeAll = parseResult.
GetValue
(s_allOption);
77
var stream = parseResult.
GetValue
(s_streamOption);
Commands\McpCallCommand.cs (1)
56
var inputJson = parseResult.
GetValue
(s_inputOption);
Commands\McpToolsCommand.cs (1)
43
var format = parseResult.
GetValue
(s_formatOption);
Commands\NewCommand.cs (8)
128
var explicitLanguageId = parseResult.
GetValue
(_languageOption);
134
if (!string.IsNullOrWhiteSpace(parseResult.
GetValue
(s_sourceOption)))
359
var configuredChannelName = parseResult.
GetValue
(_channelOption);
497
var source = parseResult.
GetValue
(s_sourceOption);
533
var version = parseResult.
GetValue
(s_versionOption);
535
var requestedChannelName = parseResult.
GetValue
(_channelOption);
581
Name = parseResult.
GetValue
(s_nameOption),
582
Output = parseResult.
GetValue
(s_outputOption),
Commands\OptionWithLegacy.cs (2)
63
=> parseResult.
GetValue
(optionWithLegacy.InnerOption) ?? parseResult.
GetValue
(optionWithLegacy.LegacyOption);
Commands\PipelineCommandBase.cs (8)
144
(parseResult.
GetValue
(s_listStepsOption) &&
155
var listSteps = parseResult.
GetValue
(s_listStepsOption);
203
var debugMode = parseResult.
GetValue
(RootCommand.DebugOption);
204
var waitForDebugger = parseResult.
GetValue
(RootCommand.WaitForDebuggerOption);
205
var noBuild = parseResult.
GetValue
(s_noBuildOption);
206
var startDebugSession = ExtensionHelper.IsExtensionHost(InteractionService, out _, out _) && parseResult.
GetValue
(RootCommand.StartDebugSessionOption);
260
var outputPath = parseResult.
GetValue
(_outputPathOption);
371
var logLevel = parseResult.
GetValue
(s_pipelineLogLevelOption);
Commands\PsCommand.cs (2)
110
var format = parseResult.
GetValue
(s_formatOption);
112
if (parseResult.
GetValue
(s_followOption))
Commands\PublishCommand.cs (3)
62
var logLevel = parseResult.
GetValue
(s_pipelineLogLevelOption);
69
var includeExceptionDetails = parseResult.
GetValue
(s_includeExceptionDetailsOption);
75
var environment = parseResult.
GetValue
(s_environmentOption);
Commands\RenderCommand.cs (4)
111
if (parseResult.
GetValue
(s_listScenariosOption))
117
var requestedScenario = parseResult.
GetValue
(s_scenarioOption);
120
return CommandResult.FromExitCode(await ExecuteChoiceAsync(requestedScenario, parseResult.
GetValue
(s_consoleWidthOption), cancellationToken));
137
var exitCode = await ExecuteChoiceAsync(choice, parseResult.
GetValue
(s_consoleWidthOption), cancellationToken);
Commands\ResourceCommand.cs (7)
126
var includeHidden = parseResult.
GetValue
(s_includeHiddenOption);
127
var loadArguments = parseResult.
GetValue
(s_loadArgumentsOption);
336
arguments[argument.Name] = parseResult.
GetValue
(boolOption).ToString().ToLowerInvariant();
340
var value = parseResult.
GetValue
(numberOption);
345
arguments[argument.Name] = parseResult.
GetValue
(stringOption);
629
var includeHidden = parseResult.
GetValue
(s_includeHiddenOption);
648
var includeHidden = parseResult.
GetValue
(s_includeHiddenOption);
Commands\RootCommand.cs (4)
108
(DebugOption, pr => pr.
GetValue
(DebugOption) ? ["--debug"] : null),
111
var level = pr.
GetValue
(DebugLevelOption);
114
(WaitForDebuggerOption, pr => pr.
GetValue
(WaitForDebuggerOption) ? ["--wait-for-debugger"] : null),
205
var bannerRequested = context.
GetValue
(BannerOption);
Commands\RunCommand.cs (17)
116
_isDetachMode = parseResult.
GetValue
(s_detachOption) || IsDetachedStartChild();
170
var detach = parseResult.
GetValue
(s_detachOption);
171
var noBuild = parseResult.
GetValue
(s_noBuildOption);
172
var format = parseResult.
GetValue
(AppHostLauncher.s_formatOption);
173
var launchProfile = parseResult.
GetValue
(AppHostLauncher.s_launchProfileOption);
175
var captureProfile = parseResult.
GetValue
(RootCommand.CaptureProfileOption);
176
var captureProfileDelay = TimeSpan.FromSeconds(parseResult.
GetValue
(RootCommand.CaptureProfileDelayOption));
180
startDebugSession = parseResult.
GetValue
(RootCommand.StartDebugSessionOption);
218
var nonInteractive = parseResult.
GetValue
(RootCommand.NonInteractiveOption);
323
var waitForDebugger = parseResult.
GetValue
(RootCommand.WaitForDebuggerOption);
329
Debug = parseResult.
GetValue
(RootCommand.DebugOption),
1374
var format = parseResult.
GetValue
(AppHostLauncher.s_formatOption);
1376
var noBuild = parseResult.
GetValue
(s_noBuildOption);
1377
var launchProfile = parseResult.
GetValue
(AppHostLauncher.s_launchProfileOption);
1378
var waitForDebugger = parseResult.
GetValue
(RootCommand.WaitForDebuggerOption);
1382
var captureProfile = parseResult.
GetValue
(RootCommand.CaptureProfileOption);
1384
? TimeSpan.FromSeconds(parseResult.
GetValue
(RootCommand.CaptureProfileDelayOption))
Commands\Sdk\SdkDumpCommand.cs (3)
77
var outputFile = parseResult.
GetValue
(s_outputOption);
78
var outputDirectory = parseResult.
GetValue
(s_outputDirectoryOption);
79
var format = parseResult.
GetValue
(s_formatOption);
Commands\Sdk\SdkExportCommand.cs (2)
67
var language = parseResult.
GetValue
(s_languageOption)!;
73
var packageArgument = parseResult.
GetValue
(s_packageOption);
Commands\Sdk\SdkGenerateCommand.cs (2)
62
var language = parseResult.
GetValue
(s_languageOption)!;
63
var outputDir = parseResult.
GetValue
(s_outputOption)!;
Commands\SecretListCommand.cs (1)
41
var format = parseResult.
GetValue
(s_formatOption);
Commands\SetupCommand.cs (2)
44
var installPath = parseResult.
GetValue
(s_installPathOption);
45
var force = parseResult.
GetValue
(s_forceOption);
Commands\StartCommand.cs (8)
51
var format = parseResult.
GetValue
(AppHostLauncher.s_formatOption);
53
var launchProfile = parseResult.
GetValue
(AppHostLauncher.s_launchProfileOption);
55
var noBuild = parseResult.
GetValue
(s_noBuildOption);
60
var waitForDebugger = parseResult.
GetValue
(RootCommand.WaitForDebuggerOption);
64
var captureProfile = parseResult.
GetValue
(RootCommand.CaptureProfileOption);
66
? TimeSpan.FromSeconds(parseResult.
GetValue
(RootCommand.CaptureProfileDelayOption))
73
var nonInteractive = parseResult.
GetValue
(RootCommand.NonInteractiveOption);
79
var startDebugSession = parseResult.
GetValue
(RootCommand.StartDebugSessionOption);
Commands\StopCommand.cs (2)
87
var stopAll = parseResult.
GetValue
(s_allOption);
88
var force = parseResult.
GetValue
(s_forceOption);
Commands\TelemetryLogsCommand.cs (8)
85
var follow = parseResult.
GetValue
(s_followOption);
86
var format = parseResult.
GetValue
(s_formatOption);
87
var limit = parseResult.
GetValue
(s_limitOption);
88
var traceId = parseResult.
GetValue
(s_traceIdOption);
89
var severity = parseResult.
GetValue
(s_severityOption);
90
var dashboardUrl = parseResult.
GetValue
(s_dashboardUrlOption);
91
var apiKey = parseResult.
GetValue
(s_apiKeyOption);
92
var search = parseResult.
GetValue
(s_searchOption);
Commands\TelemetrySpansCommand.cs (8)
75
var follow = parseResult.
GetValue
(s_followOption);
76
var format = parseResult.
GetValue
(s_formatOption);
77
var limit = parseResult.
GetValue
(s_limitOption);
78
var traceId = parseResult.
GetValue
(s_traceIdOption);
79
var hasError = parseResult.
GetValue
(s_hasErrorOption);
80
var dashboardUrl = parseResult.
GetValue
(s_dashboardUrlOption);
81
var apiKey = parseResult.
GetValue
(s_apiKeyOption);
82
var search = parseResult.
GetValue
(s_searchOption);
Commands\TelemetryTracesCommand.cs (7)
74
var format = parseResult.
GetValue
(s_formatOption);
75
var limit = parseResult.
GetValue
(s_limitOption);
76
var traceId = parseResult.
GetValue
(s_traceIdOption);
77
var hasError = parseResult.
GetValue
(s_hasErrorOption);
78
var dashboardUrl = parseResult.
GetValue
(s_dashboardUrlOption);
79
var apiKey = parseResult.
GetValue
(s_apiKeyOption);
80
var search = parseResult.
GetValue
(s_searchOption);
Commands\TemplateCommand.cs (1)
31
if (!string.IsNullOrWhiteSpace(parseResult.
GetValue
(NewCommand.s_sourceOption)))
Commands\TerminalAttachCommand.cs (2)
81
var requestedReplica = parseResult.
GetValue
(s_replicaOption);
82
var viewerOnly = parseResult.
GetValue
(s_viewerOption);
Commands\TerminalPsCommand.cs (2)
76
var format = parseResult.
GetValue
(s_formatOption);
77
var verbose = parseResult.
GetValue
(s_verboseOption);
Commands\UpdateCommand.cs (7)
154
var isSelfUpdate = parseResult.
GetValue
(s_selfOption);
237
var channelName = parseResult.
GetValue
(_channelOption) ?? parseResult.
GetValue
(_qualityOption);
374
await HandlePendingMigrationsAsync(parseResult.
GetValue
(s_migrateOption), projectFile, confirmBinding, cancellationToken);
666
var channel = selectedChannel ?? parseResult.
GetValue
(_channelOption) ?? parseResult.
GetValue
(_qualityOption);
680
var nonInteractive = parseResult.
GetValue
(RootCommand.NonInteractiveOption);
Commands\WaitCommand.cs (2)
66
var status = parseResult.
GetValue
(s_statusOption)!.ToLowerInvariant();
67
var timeoutSeconds = parseResult.
GetValue
(s_timeoutOption);
Interaction\PromptBinding.cs (1)
170
return (true, transform(parseResult.
GetValue
(option)));
Profiling\ProfileCaptureOptions.cs (3)
54
if (!parseResult.
GetValue
(captureProfileOption))
59
var outputPath = parseResult.
GetValue
(captureProfileOutputOption);
60
var startupDelaySeconds = Math.Max(0, parseResult.
GetValue
(captureProfileDelayOption));
Program.cs (1)
1312
if (!parseResult.
GetValue
(RootCommand.CliWaitForDebuggerOption))
aspire-managed (28)
NuGet\Commands\LayoutCommand.cs (5)
57
var assetsPath = parseResult.
GetValue
(assetsOption)!;
58
var outputPath = parseResult.
GetValue
(outputOption)!;
59
var framework = parseResult.
GetValue
(frameworkOption)!;
60
var runtimeIdentifier = parseResult.
GetValue
(runtimeIdentifierOption);
61
var verbose = parseResult.
GetValue
(verboseOption);
NuGet\Commands\ManifestCommand.cs (5)
57
var assetsPath = parseResult.
GetValue
(assetsOption)!;
58
var outputPath = parseResult.
GetValue
(outputOption)!;
59
var framework = parseResult.
GetValue
(frameworkOption)!;
60
var runtimeIdentifier = parseResult.
GetValue
(runtimeIdentifierOption);
61
var verbose = parseResult.
GetValue
(verboseOption);
NuGet\Commands\RestoreCommand.cs (9)
96
var packageArgs = parseResult.
GetValue
(packageOption) ?? [];
97
var framework = parseResult.
GetValue
(frameworkOption)!;
98
var runtimeIdentifier = parseResult.
GetValue
(runtimeIdentifierOption);
99
var output = parseResult.
GetValue
(outputOption)!;
100
var sources = parseResult.
GetValue
(sourceOption) ?? [];
101
var nugetConfigPath = parseResult.
GetValue
(configOption);
102
var workingDir = parseResult.
GetValue
(workingDirOption);
103
var noNugetOrg = parseResult.
GetValue
(noNugetOrgOption);
104
var verbose = parseResult.
GetValue
(verboseOption);
NuGet\Commands\SearchCommand.cs (9)
89
var query = parseResult.
GetValue
(queryOption)!;
90
var prerelease = parseResult.
GetValue
(prereleaseOption);
91
var take = parseResult.
GetValue
(takeOption);
92
var skip = parseResult.
GetValue
(skipOption);
93
var sources = parseResult.
GetValue
(sourceOption) ?? [];
94
var configPath = parseResult.
GetValue
(configOption);
95
var workingDir = parseResult.
GetValue
(workingDirOption);
96
var format = parseResult.
GetValue
(formatOption) ?? "json";
97
var verbose = parseResult.
GetValue
(verboseOption);
Aspire.Cli.Tests (25)
Commands\ParseResultHelperTests.cs (12)
178
var parentValues = Assert.IsType<string[]>(parentParseResult.
GetValue
(valuesOption));
180
Assert.False(parentParseResult.
GetValue
(flagOption));
186
Assert.Equal(parentValues, Assert.IsType<string[]>(childParseResult.
GetValue
(valuesOption)));
187
Assert.Equal(parentParseResult.
GetValue
(flagOption), childParseResult.
GetValue
(flagOption));
222
Assert.False(childParseResult.
GetValue
(AppHostLauncher.s_isolatedOption));
223
Assert.True(childParseResult.
GetValue
(RootCommand.DebugOption));
224
Assert.True(childParseResult.
GetValue
(RootCommand.NonInteractiveOption));
225
Assert.True(childParseResult.
GetValue
(RootCommand.CaptureProfileOption));
246
Assert.True(childParseResult.
GetValue
(RootCommand.DebugOption));
247
Assert.True(childParseResult.
GetValue
(RootCommand.NonInteractiveOption));
248
Assert.True(childParseResult.
GetValue
(RootCommand.CaptureProfileOption));
Commands\RootCommandTests.cs (4)
244
Assert.True(result.
GetValue
(RootCommand.CaptureProfileOption));
245
Assert.Equal("profile.zip", result.
GetValue
(RootCommand.CaptureProfileOutputOption)?.Name);
246
Assert.Equal(1, result.
GetValue
(RootCommand.CaptureProfileDelayOption));
268
Assert.Equal("E2E", result.
GetValue
(AppHostLauncher.s_launchProfileOption));
Commands\RunCommandTests.cs (5)
69
Assert.Equal("E2E", result.
GetValue
(AppHostLauncher.s_launchProfileOption));
3718
Assert.Null(result.
GetValue
(AppHostLauncher.s_launchProfileOption));
4483
Assert.True(childParseResult.
GetValue
(RootCommand.DebugOption));
4484
Assert.False(childParseResult.
GetValue
(AppHostLauncher.s_isolatedOption));
4790
Assert.Equal(expectedLaunchProfile, childParseResult.
GetValue
(AppHostLauncher.s_launchProfileOption));
Commands\StartCommandTests.cs (3)
117
Assert.Equal("E2E", result.
GetValue
(AppHostLauncher.s_launchProfileOption));
202
Assert.Null(result.
GetValue
(AppHostLauncher.s_launchProfileOption));
703
Assert.Equal(expectedLaunchProfile, childParseResult.
GetValue
(AppHostLauncher.s_launchProfileOption));
Projects\DotNetAppHostProjectTests.cs (1)
1145
LaunchProfile = parseResult.
GetValue
(AppHostLauncher.s_launchProfileOption),
Aspire.RuntimeIdentifier.Tool (3)
Program.cs (3)
47
string rgp = parseResult.
GetValue
(runtimeGraphPathOption) ?? throw new InvalidOperationException("The --runtimeGraphPath argument is required.");
56
var ridToUse = parseResult.
GetValue
(netcoreSdkRuntimeIdentifierOption);
58
var supportedRids = parseResult.
GetValue
(supportedRidsOption);
Aspire.TerminalHost (5)
TerminalHostArgs.cs (5)
130
ProducerUdsPath = parseResult.
GetValue
(producerOption)!,
131
ConsumerUdsPath = parseResult.
GetValue
(consumerOption)!,
132
ControlUdsPath = parseResult.
GetValue
(controlOption)!,
133
Columns = parseResult.
GetValue
(columnsOption),
134
Rows = parseResult.
GetValue
(rowsOption),
cdac-build-tool (4)
ComposeCommand.cs (4)
36
var output = parse.
GetValue
(outputFile);
42
var baselinesDir = parse.
GetValue
(baselinePath);
54
var templateFilePath = parse.
GetValue
(templateFile);
66
var verbose = parse.
GetValue
(_verboseOption);
ConfigurationSchemaGenerator (3)
RootGenerateCommand.cs (3)
40
var inputAssembly = parseResult.
GetValue
(s_inputOption);
41
var references = parseResult.
GetValue
(s_referencesOption);
42
var outputFile = parseResult.
GetValue
(s_outputOption);
crossgen2 (9)
Crossgen2RootCommand.cs (8)
235
CompositeOrInputBubble = result.
GetValue
(Composite) | result.
GetValue
(InputBubble);
236
if (result.
GetValue
(OptimizeSpace))
240
else if (result.
GetValue
(OptimizeTime))
244
else if (result.
GetValue
(Optimize))
255
int alignment = result.
GetValue
(CustomPESectionAlignment);
263
string makeReproPath = result.
GetValue
(MakeReproPath);
271
Helpers.MakeReproPackage(makeReproPath, result.
GetValue
(OutputFilePath), args,
Program.cs (1)
983
private T Get<T>(Option<T> option) => _command.Result.
GetValue
(option);
dotnet (185)
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (3)
25
bool msbuild = result.
GetValue
(Definition.MSBuildOption);
26
bool vbcscompiler = result.
GetValue
(Definition.VbcsOption);
27
bool razor = result.
GetValue
(Definition.RazorOption);
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (3)
18
bool dryRun = _parseResult.
GetValue
(Definition.DryRunOption);
74
var days = _parseResult.
GetValue
(Definition.DaysOption);
93
if (!_parseResult.
GetValue
(Definition.AutomaticOption))
Commands\Hidden\Complete\CompleteCommand.cs (1)
57
var position = complete.
GetValue
(definition.PositionOption);
Commands\New\NewCommandParser.cs (5)
36
var disableSdkTemplates = parseResult.
GetValue
(definition.DisableSdkTemplatesOption);
38
var disableProjectContext = parseResult.
GetValue
(definition.DisableProjectContextEvaluationOption)
41
var diagnosticMode = parseResult.
GetValue
(definition.DiagnosticOption);
43
var projectPath = parseResult.
GetValue
(definition.InstantiateOptions.ProjectOption);
44
var outputPath = parseResult.
GetValue
(definition.InstantiateOptions.OutputOption);
Commands\Pack\PackCommand.cs (6)
70
parseResult.HasOption(definition.ConfigurationOption) ? parseResult.
GetValue
(definition.ConfigurationOption) : null
107
OutputDirectory = parseResult.
GetValue
(definition.OutputOption),
108
LogLevel = MappingVerbosityToNugetLogLevel(parseResult.
GetValue
(definition.VerbosityOption)),
120
var version = parseResult.
GetValue
(definition.VersionOption);
124
if (parseResult.
GetValue
(definition.IncludeSymbolsOption))
127
var configuration = parseResult.
GetValue
(definition.ConfigurationOption) ?? "Debug";
Commands\Package\Add\PackageAddCommand.cs (2)
51
if (!_parseResult.
GetValue
(Definition.NoRestoreOption))
163
if (_parseResult.
GetValue
(Definition.NoRestoreOption))
Commands\Package\List\PackageListCommand.cs (2)
36
ReportOutputFormat formatOption = _parseResult.
GetValue
(Definition.FormatOption);
37
bool interactive = _parseResult.
GetValue
(Definition.InteractiveOption);
Commands\Package\PackageCommandParser.cs (4)
47
var allowPrerelease = context.ParseResult.
GetValue
(def.PrereleaseOption);
57
var allowPrerelease = context.ParseResult.
GetValue
(def.PrereleaseOption);
109
(true, false) => (parseResult.
GetValue
(fileOption!)!, AppKinds.FileBased),
110
(false, true) => (parseResult.
GetValue
(projectOption!)!, AppKinds.ProjectBased),
Commands\Project\Convert\ProjectConvertCommand.cs (5)
32
_outputDirectory = parseResult.
GetValue
(Definition.OutputOption)?.FullName;
33
_force = parseResult.
GetValue
(Definition.ForceOption);
34
_dryRun = parseResult.
GetValue
(Definition.DryRunOption);
35
_deleteSource = parseResult.
GetValue
(Definition.DeleteSourceOption);
36
_interactive = parseResult.
GetValue
(Definition.InteractiveOption);
Commands\Publish\PublishCommand.cs (2)
75
parseResult.HasOption(definition.ConfigurationOption) ? parseResult.
GetValue
(definition.ConfigurationOption) : null,
76
parseResult.HasOption(definition.FrameworkOption) ? parseResult.
GetValue
(definition.FrameworkOption) : null
Commands\Reference\Add\ReferenceAddCommand.cs (3)
34
bool interactive = _parseResult.
GetValue
(Definition.InteractiveOption);
51
var frameworkString = _parseResult.
GetValue
(Definition.FrameworkOption);
115
if (!string.IsNullOrEmpty(_parseResult.
GetValue
(Definition.FrameworkOption)))
Commands\Reference\Remove\ReferenceRemoveCommand.cs (2)
65
_parseResult.
GetValue
(Definition.FrameworkOption),
78
if (!string.IsNullOrEmpty(_parseResult.
GetValue
(Definition.FrameworkOption)))
Commands\Run\RunCommand.cs (7)
803
string? projectOption = parseResult.
GetValue
(definition.ProjectOption);
804
string? fileOption = parseResult.
GetValue
(definition.FileOption);
855
string launchProfile = parseResult.
GetValue
(definition.LaunchProfileOption) ?? string.Empty;
900
device: parseResult.
GetValue
(definition.DeviceOption),
904
interactive: parseResult.
GetValue
(definition.InteractiveOption),
908
environmentVariables: parseResult.
GetValue
(definition.EnvOption) ?? ImmutableDictionary<string, string>.Empty
938
if (parseResult.HasOption(definition.PropertyOption) && parseResult.
GetValue
(definition.PropertyOption)!.Any())
Commands\Solution\Add\SolutionAddCommand.cs (3)
47
_inRoot = parseResult.
GetValue
(Definition.InRootOption);
48
_solutionFolderPath = parseResult.
GetValue
(Definition.SolutionFolderOption);
49
_includeReferences = parseResult.
GetValue
(Definition.IncludeReferencesOption);
Commands\Solution\List\SolutionListCommand.cs (1)
21
_displaySolutionFolders = parseResult.
GetValue
(Definition.SolutionFolderOption);
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (8)
193
: parseResult.
GetValue
(definition.MaximumFailedTestsOption),
196
: parseResult.
GetValue
(definition.TimeoutOption),
230
parseResult.
GetValue
(definition.NoArtifactPostProcessingOption),
244
parseResult.
GetValue
(definition.MinimumExpectedTestsOption) is { } minimumExpectedTests &&
603
string? value = parseResult.
GetValue
(definition.ListTestsOption);
614
var showPassedTests = parseResult.
GetValue
(definition.OutputOption) == OutputOptions.Detailed;
653
MinimumExpectedTests = parseResult.
GetValue
(definition.MinimumExpectedTestsOption),
738
var degreeOfParallelism = parseResult.
GetValue
(definition.MaxParallelTestModulesOption);
Commands\Test\MTP\TestCommandOptions.cs (16)
64
if (parseResult.
GetValue
(definition.NoLogoOption) && !otherArgs.Contains("--no-banner"))
78
string? resultsDirectory = parseResult.
GetValue
(definition.ResultsDirectoryOption);
84
string? configFile = parseResult.
GetValue
(definition.ConfigFileOption);
90
string? diagnosticOutputDirectory = parseResult.
GetValue
(definition.DiagnosticOutputDirectoryOption);
96
string? projectOrSolutionOptionValue = parseResult.
GetValue
(definition.ProjectOrSolutionOption);
97
string? testModulesFilterOptionValue = parseResult.
GetValue
(definition.TestModulesFilterOption);
113
parseResult.
GetValue
(definition.SolutionOption),
120
parseResult.
GetValue
(definition.ResultsDirectoryLayoutOption) == "per-module"
129
parseResult.
GetValue
(definition.NoRestoreOption),
130
parseResult.
GetValue
(definition.NoBuildOption),
131
parseResult.HasOption(definition.VerbosityOption) ? parseResult.
GetValue
(definition.VerbosityOption) : null,
132
parseResult.
GetValue
(definition.NoLaunchProfileOption),
133
parseResult.
GetValue
(definition.NoLaunchProfileArgumentsOption),
136
Device: parseResult.
GetValue
(definition.DeviceOption),
137
ListDevices: parseResult.
GetValue
(definition.ListDevicesOption),
138
EnvironmentVariables: parseResult.
GetValue
(definition.EnvOption) ?? ImmutableDictionary<string, string>.Empty);
Commands\Test\MTP\TestModulesFilterHandler.cs (2)
27
_environmentVariables = parseResult.
GetValue
(definition.EnvOption)
36
rootDirectory = parseResult.
GetValue
(definition.TestModulesRootDirectoryOption);
Commands\Test\VSTest\TestCommand.cs (5)
131
exitCode |= RunArtifactPostProcessingIfNeeded(testSessionCorrelationId, parseResult.
GetValue
(definition.DiagOption), FeatureFlag.Instance);
175
exitCode |= RunArtifactPostProcessingIfNeeded(testSessionCorrelationId, parseResult.
GetValue
(definition.DiagOption), FeatureFlag.Instance);
242
bool noRestore = result.
GetValue
(definition.NoRestoreOption) || result.
GetValue
(definition.NoBuildOption);
259
if (result.
GetValue
(definition.TestEnvOption) is { } environmentVariables)
Commands\Tool\Execute\ToolExecuteCommand.cs (7)
42
_allowRollForward = result.
GetValue
(Definition.RollForwardOption);
43
_configFile = result.
GetValue
(Definition.ConfigOption);
44
_sources = result.
GetValue
(Definition.SourceOption) ?? [];
45
_addSource = result.
GetValue
(Definition.AddSourceOption) ?? [];
46
_verbosity = result.
GetValue
(Definition.VerbosityOption);
55
_parseResult.
GetValue
(Definition.VersionOption),
56
_parseResult.
GetValue
(Definition.PrereleaseOption));
Commands\Tool\Install\ToolInstallCommand.cs (3)
26
_global = parseResult.
GetValue
(Definition.LocationOptions.GlobalOption);
27
_toolPath = parseResult.
GetValue
(Definition.LocationOptions.ToolPathOption);
28
_framework = parseResult.
GetValue
(Definition.FrameworkOption);
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (13)
72
_configFilePath = parseResult.
GetValue
(Definition.ConfigOption);
73
_framework = parseResult.
GetValue
(Definition.FrameworkOption);
74
_source = parseResult.
GetValue
(Definition.SourceOption);
75
_addSource = parseResult.
GetValue
(Definition.AddSourceOption);
76
_global = parseResult.
GetValue
(Definition.LocationOptions.GlobalOption);
78
_toolPath = parseResult.
GetValue
(Definition.LocationOptions.ToolPathOption);
82
_updateAll = parseResult.
GetValue
(updateDef.UpdateAllOption);
89
_architecture = parseResult.
GetValue
(installDef.ArchitectureOption);
90
_allowRollForward = parseResult.
GetValue
(installDef.RollForwardOption);
99
var configOption = parseResult.
GetValue
(Definition.ConfigOption);
124
_allowPackageDowngrade = parseResult.
GetValue
(Definition.AllowPackageDowngradeOption);
164
_parseResult.
GetValue
(Definition.VersionOption),
165
_parseResult.
GetValue
(Definition.PrereleaseOption));
Commands\Tool\Install\ToolInstallLocalCommand.cs (11)
47
_updateAll = parseResult.
GetValue
(updateDef.UpdateAllOption);
54
_createManifestIfNeeded = parseResult.
GetValue
(installDef.CreateManifestIfNeededOption);
55
_allowRollForward = parseResult.
GetValue
(installDef.RollForwardOption);
58
_explicitManifestFile = parseResult.
GetValue
(Definition.ToolManifestOption);
69
configFilePath: parseResult.
GetValue
(Definition.ConfigOption),
70
sources: parseResult.
GetValue
(Definition.AddSourceOption),
71
sourceFeedOverrides: parseResult.
GetValue
(Definition.SourceOption),
72
verbosity: parseResult.
GetValue
(Definition.VerbosityOption),
77
_allowPackageDowngrade = parseResult.
GetValue
(Definition.AllowPackageDowngradeOption);
98
_parseResult.
GetValue
(Definition.VersionOption),
99
_parseResult.
GetValue
(Definition.PrereleaseOption));
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (2)
28
var toolPathOption = _parseResult.
GetValue
(Definition.LocationOptions.ToolPathOption);
56
var formatValue = _parseResult.
GetValue
(Definition.ToolListFormatOption);
Commands\Tool\List\ToolListLocalCommand.cs (1)
43
var formatValue = _parseResult.
GetValue
(Definition.ToolListFormatOption);
Commands\Tool\Restore\ToolRestoreCommand.cs (5)
65
_configFilePath = result.
GetValue
(Definition.ConfigOption);
66
_sources = result.
GetValue
(Definition.AddSourceOption);
67
_verbosity = result.
GetValue
(Definition.VerbosityOption);
68
if (!result.HasOption(Definition.VerbosityOption) && result.
GetValue
(Definition.RestoreOptions.InteractiveOption))
182
string customFile = _parseResult.
GetValue
(Definition.ToolManifestOption);
Commands\Tool\Run\ToolRunCommand.cs (1)
26
_allowRollForward = result.
GetValue
(Definition.RollForwardOption);
Commands\Tool\Search\ToolSearchCommand.cs (3)
22
var isDetailed = _parseResult.
GetValue
(Definition.DetailOption);
43
prerelease: _parseResult.
GetValue
(Definition.PrereleaseOption));
47
var valueFromParser = _parseResult.
GetValue
(alias);
Commands\Tool\Uninstall\ToolUninstallCommand.cs (2)
26
_global = result.
GetValue
(Definition.LocationOptions.GlobalOption);
27
_toolPath = result.
GetValue
(Definition.LocationOptions.ToolPathOption);
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (2)
32
var global = _parseResult.
GetValue
(Definition.LocationOptions.GlobalOption);
33
var toolPath = _parseResult.
GetValue
(Definition.LocationOptions.ToolPathOption);
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
32
_explicitManifestFile = parseResult.
GetValue
(Definition.ToolManifestOption);
Commands\Tool\Update\ToolUpdateCommand.cs (3)
46
_global = result.
GetValue
(Definition.LocationOptions.GlobalOption);
47
_toolPath = result.
GetValue
(Definition.LocationOptions.ToolPathOption);
84
!string.IsNullOrEmpty(parseResult.
GetValue
(Definition.VersionOption)))
Commands\VSTest\VSTestCommand.cs (1)
52
var loggerValues = parseResult.
GetValue
(definition.TestLoggerOption);
Commands\Workload\Clean\WorkloadCleanCommand.cs (2)
30
_cleanAll = parseResult.
GetValue
(Definition.CleanAllOption);
34
if (!string.IsNullOrEmpty(parseResult.
GetValue
(Definition.SdkVersionOption)))
Commands\Workload\Config\WorkloadConfigCommand.cs (1)
34
_updateMode = parseResult.
GetValue
(Definition.UpdateMode);
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
50
skipManifestUpdate = parseResult.
GetValue
(installDef.SkipManifestUpdateOption);
Commands\Workload\InstallingWorkloadCommand.cs (10)
94
_printDownloadLinkOnly = parseResult.
GetValue
(Definition.PrintDownloadLinkOnlyOption);
95
_fromCacheOption = parseResult.
GetValue
(Definition.FromCacheOption);
96
_includePreviews = parseResult.
GetValue
(Definition.IncludePreviewOption);
97
_downloadToCacheOption = parseResult.
GetValue
(Definition.DownloadToCacheOption);
99
_fromRollbackDefinition = parseResult.
GetValue
(Definition.FromRollbackFileOption);
100
_workloadSetVersionFromCommandLine = parseResult.
GetValue
(Definition.WorkloadSetVersionOption);
102
var configOption = parseResult.
GetValue
(Definition.ConfigOption);
103
var sourceOption = parseResult.
GetValue
(Definition.SourceOption);
109
if (!string.IsNullOrEmpty(parseResult.
GetValue
(Definition.SdkVersionOption)))
114
_targetSdkVersion = new ReleaseVersion(parseResult.
GetValue
(Definition.SdkVersionOption));
Commands\Workload\List\WorkloadListCommand.cs (3)
41
_machineReadableOption = parseResult.
GetValue
(Definition.MachineReadableOption);
47
parseResult.
GetValue
(Definition.VersionOption) ?? null,
57
_includePreviews = parseResult.
GetValue
(Definition.IncludePreviewsOption);
Commands\Workload\Repair\WorkloadRepairCommand.cs (3)
35
var configOption = parseResult.
GetValue
(Definition.ConfigOption);
36
var sourceOption = parseResult.
GetValue
(Definition.SourceOption);
42
if (!string.IsNullOrEmpty(parseResult.
GetValue
(Definition.SdkVersionOption)))
Commands\Workload\Search\WorkloadSearchCommand.cs (1)
27
if (!string.IsNullOrEmpty(result.
GetValue
(Definition.VersionOption)))
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (4)
42
if (!string.IsNullOrEmpty(result.
GetValue
(Definition.Parent.VersionOption)))
52
_numberOfWorkloadSetsToTake = result.
GetValue
(Definition.TakeOption);
53
_workloadSetOutputFormat = result.
GetValue
(Definition.FormatOption);
62
result.
GetValue
(Definition.IncludePreviewsOption) :
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
37
if (!string.IsNullOrEmpty(parseResult.
GetValue
(Definition.VersionOption)))
Commands\Workload\Update\WorkloadUpdateCommand.cs (5)
48
_fromPreviousSdk = parseResult.
GetValue
(updateDef.FromPreviousSdkOption);
49
_adManifestOnlyOption = parseResult.
GetValue
(updateDef.AdManifestOnlyOption);
50
_printRollbackDefinitionOnly = parseResult.
GetValue
(updateDef.PrintRollbackOption);
51
_fromHistorySpecified = parseResult.
GetValue
(updateDef.FromHistoryOption);
52
_historyManifestOnlyOption = !string.IsNullOrWhiteSpace(parseResult.
GetValue
(updateDef.HistoryManifestOnlyOption));
Commands\Workload\WorkloadCommandBase.cs (4)
100
var skipSignCheck = Definition.SkipSignCheckOption != null && parseResult.
GetValue
(Definition.SkipSignCheckOption);
106
Verbosity = Definition.VerbosityOption != null ? parseResult.
GetValue
(Definition.VerbosityOption) : VerbosityOptions.normal;
114
: Definition.TempDirOption != null && !string.IsNullOrWhiteSpace(parseResult.
GetValue
(Definition.TempDirOption))
115
? parseResult.
GetValue
(Definition.TempDirOption)!
Commands\Workload\WorkloadCommandParser.cs (5)
48
return new RestoreActionConfig(DisableParallel: parseResult.
GetValue
(options.DisableParallelOption),
49
NoCache: parseResult.
GetValue
(options.NoCacheOption) || parseResult.
GetValue
(options.NoHttpCacheOption),
50
IgnoreFailedSources: parseResult.
GetValue
(options.IgnoreFailedSourcesOption),
51
Interactive: parseResult.
GetValue
(options.InteractiveOption));
Extensions\CommonOptionsExtensions.cs (5)
104
return new RestoreActionConfig(DisableParallel: parseResult.
GetValue
(options.DisableParallelOption),
105
NoCache: parseResult.
GetValue
(options.NoCacheOption) || parseResult.
GetValue
(options.NoHttpCacheOption),
106
IgnoreFailedSources: parseResult.
GetValue
(options.IgnoreFailedSourcesOption),
107
Interactive: parseResult.
GetValue
(options.InteractiveOption));
Parser.cs (1)
92
if (parseResult.
GetValue
(rootCommand.DiagOption) && parseResult.Tokens.Count == 1)
ParserOptionActions.cs (4)
45
if (!parseResult.HasOption(Option) || !parseResult.
GetValue
(option)
121
if (parseResult.GetResult(Option) is not { Implicit: false } || !parseResult.
GetValue
(option)
140
if (parseResult.GetResult(Option) is not { Implicit: false } || !parseResult.
GetValue
(option)
198
if (parseResult.GetResult(Option) is not { Implicit: false } || !parseResult.
GetValue
(option))
dotnet-aot (44)
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (5)
227
string? launchProfile = parseResult.
GetValue
(definition.LaunchProfileOption);
254
globalProperties["NuGetInteractive"] = parseResult.
GetValue
(definition.InteractiveOption) ? "true" : "false";
318
string? entryPointPath = parseResult.
GetValue
(definition.FileOption);
372
if (string.IsNullOrEmpty(parseResult.
GetValue
(definition.FileOption)))
382
environmentVariables = parseResult.
GetValue
(definition.EnvOption)
src\sdk\src\Cli\dotnet\Commands\Solution\List\SolutionListCommand.cs (1)
21
_displaySolutionFolders = parseResult.
GetValue
(Definition.SolutionFolderOption);
src\sdk\src\Cli\dotnet\Commands\Test\AotTestCommand.cs (1)
30
|| string.IsNullOrWhiteSpace(parseResult.
GetValue
(definition.TestModulesFilterOption))
src\sdk\src\Cli\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (8)
193
: parseResult.
GetValue
(definition.MaximumFailedTestsOption),
196
: parseResult.
GetValue
(definition.TimeoutOption),
230
parseResult.
GetValue
(definition.NoArtifactPostProcessingOption),
244
parseResult.
GetValue
(definition.MinimumExpectedTestsOption) is { } minimumExpectedTests &&
603
string? value = parseResult.
GetValue
(definition.ListTestsOption);
614
var showPassedTests = parseResult.
GetValue
(definition.OutputOption) == OutputOptions.Detailed;
653
MinimumExpectedTests = parseResult.
GetValue
(definition.MinimumExpectedTestsOption),
738
var degreeOfParallelism = parseResult.
GetValue
(definition.MaxParallelTestModulesOption);
src\sdk\src\Cli\dotnet\Commands\Test\MTP\TestCommandOptions.cs (16)
64
if (parseResult.
GetValue
(definition.NoLogoOption) && !otherArgs.Contains("--no-banner"))
78
string? resultsDirectory = parseResult.
GetValue
(definition.ResultsDirectoryOption);
84
string? configFile = parseResult.
GetValue
(definition.ConfigFileOption);
90
string? diagnosticOutputDirectory = parseResult.
GetValue
(definition.DiagnosticOutputDirectoryOption);
96
string? projectOrSolutionOptionValue = parseResult.
GetValue
(definition.ProjectOrSolutionOption);
97
string? testModulesFilterOptionValue = parseResult.
GetValue
(definition.TestModulesFilterOption);
113
parseResult.
GetValue
(definition.SolutionOption),
120
parseResult.
GetValue
(definition.ResultsDirectoryLayoutOption) == "per-module"
129
parseResult.
GetValue
(definition.NoRestoreOption),
130
parseResult.
GetValue
(definition.NoBuildOption),
131
parseResult.HasOption(definition.VerbosityOption) ? parseResult.
GetValue
(definition.VerbosityOption) : null,
132
parseResult.
GetValue
(definition.NoLaunchProfileOption),
133
parseResult.
GetValue
(definition.NoLaunchProfileArgumentsOption),
136
Device: parseResult.
GetValue
(definition.DeviceOption),
137
ListDevices: parseResult.
GetValue
(definition.ListDevicesOption),
138
EnvironmentVariables: parseResult.
GetValue
(definition.EnvOption) ?? ImmutableDictionary<string, string>.Empty);
src\sdk\src\Cli\dotnet\Commands\Test\MTP\TestModulesFilterHandler.cs (2)
27
_environmentVariables = parseResult.
GetValue
(definition.EnvOption)
36
rootDirectory = parseResult.
GetValue
(definition.TestModulesRootDirectoryOption);
src\sdk\src\Cli\dotnet\Commands\Tool\List\ToolListLocalCommand.cs (1)
43
var formatValue = _parseResult.
GetValue
(Definition.ToolListFormatOption);
src\sdk\src\Cli\dotnet\Commands\Tool\Run\ToolRunCommand.cs (1)
26
_allowRollForward = result.
GetValue
(Definition.RollForwardOption);
src\sdk\src\Cli\dotnet\Commands\Tool\Search\ToolSearchCommand.cs (3)
22
var isDetailed = _parseResult.
GetValue
(Definition.DetailOption);
43
prerelease: _parseResult.
GetValue
(Definition.PrereleaseOption));
47
var valueFromParser = _parseResult.
GetValue
(alias);
src\sdk\src\Cli\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
32
_explicitManifestFile = parseResult.
GetValue
(Definition.ToolManifestOption);
src\sdk\src\Cli\dotnet\Parser.cs (2)
92
if (parseResult.
GetValue
(rootCommand.DiagOption) && parseResult.Tokens.Count == 1)
262
if (parseResult.
GetValue
((Option<bool>)Option))
src\sdk\src\Cli\dotnet\ParserOptionActions.cs (3)
121
if (parseResult.GetResult(Option) is not { Implicit: false } || !parseResult.
GetValue
(option)
140
if (parseResult.GetResult(Option) is not { Implicit: false } || !parseResult.
GetValue
(option)
198
if (parseResult.GetResult(Option) is not { Implicit: false } || !parseResult.
GetValue
(option))
dotnet-format (19)
Commands\FormatAnalyzersCommand.cs (3)
39
parseResult.
GetValue
(SeverityOption) is string { Length: > 0 } analyzerSeverity)
45
parseResult.
GetValue
(DiagnosticsOption) is string[] { Length: > 0 } diagnostics)
51
parseResult.
GetValue
(ExcludeDiagnosticsOption) is string[] { Length: > 0 } excludeDiagnostics)
Commands\FormatCommandCommon.cs (10)
159
parseResult.
GetValue
(VerbosityOption) is string { Length: > 0 } verbosity)
173
if (parseResult.
GetValue
(NoRestoreOption))
178
if (parseResult.
GetValue
(VerifyNoChanges))
184
if (parseResult.
GetValue
(IncludeGeneratedOption))
191
var fileToInclude = parseResult.
GetValue
(IncludeOption) ?? Array.Empty<string>();
192
var fileToExclude = parseResult.
GetValue
(ExcludeOption) ?? Array.Empty<string>();
201
if (parseResult.
GetValue
(ReportOption) is string { Length: > 0 } reportPath)
211
if (parseResult.
GetValue
(BinarylogOption) is string { Length: > 0 } binaryLogPath)
220
parseResult.
GetValue
(FrameworkOption) is string { Length: > 0 } framework)
316
if (parseResult.
GetValue
(FolderOption))
Commands\FormatStyleCommand.cs (3)
39
parseResult.
GetValue
(SeverityOption) is string { Length: > 0 } styleSeverity)
45
parseResult.
GetValue
(DiagnosticsOption) is string[] { Length: > 0 } diagnostics)
51
parseResult.
GetValue
(ExcludeDiagnosticsOption) is string[] { Length: > 0 } excludeDiagnostics)
Commands\RootFormatCommand.cs (3)
42
parseResult.
GetValue
(SeverityOption) is string { Length: > 0 } defaultSeverity)
49
parseResult.
GetValue
(DiagnosticsOption) is string[] { Length: > 0 } diagnostics)
55
parseResult.
GetValue
(ExcludeDiagnosticsOption) is string[] { Length: > 0 } excludeDiagnostics)
dotnet-sourcelink (5)
Program.cs (5)
110
var authMethod = parseResult.
GetValue
(authArg);
111
Encoding? authEncoding = parseResult.
GetValue
(authEncodingArg);
112
var user = parseResult.
GetValue
(userArg);
113
var password = parseResult.
GetValue
(passwordArg);
114
var offline = parseResult.
GetValue
(offlineArg);
dotnet-suggest (3)
SuggestionDispatcher.cs (3)
61
Register(context.
GetValue
(commandPathOption), context.InvocationConfiguration.Output);
129
var commandPath = parseResult.
GetValue
(ExecutableOption);
141
var position = parseResult.
GetValue
(PositionOption);
dotnet-watch (14)
CommandLine\CommandLineOptions.cs (14)
109
var projectValue = parseResult.
GetValue
(definition.LongProjectOption);
112
var projectShortValue = parseResult.
GetValue
(definition.ShortProjectOption);
143
var logLevel = parseResult.
GetValue
(definition.VerboseOption)
145
: parseResult.
GetValue
(definition.QuietOption)
149
var launchProfile = parseResult.
GetValue
(definition.NoLaunchProfileOption)
151
: parseResult.
GetValue
(definition.LaunchProfileOption);
155
List = parseResult.
GetValue
(definition.ListOption),
159
NoHotReload = parseResult.
GetValue
(definition.NoHotReloadOption),
160
NonInteractive = parseResult.
GetValue
(definition.NonInteractiveOption),
170
FilePath = parseResult.
GetValue
(definition.FileOption),
173
TargetFramework = parseResult.
GetValue
(definition.FrameworkOption),
174
Device = parseResult.
GetValue
(definition.DeviceOption),
225
parseResult.
GetValue
((Option<string>)optionResult.Option) is { } projectPath)
234
if (optionResult.Option == definition.NonInteractiveOption && parseResult.
GetValue
(definition.NonInteractiveOption))
GenerateDocumentationAndConfigFiles (23)
Program.cs (23)
207
var validateOnly = parseResult.
GetValue
(validateOnlyOption);
208
var analyzerRulesetsDir = parseResult.
GetValue
(analyzerRulesetsDirOption) ?? string.Empty;
209
var analyzerEditorconfigsDir = parseResult.
GetValue
(analyzerEditorConfigsDirOption) ?? string.Empty;
210
var analyzerGlobalconfigsDir = parseResult.
GetValue
(analyzerGlobalConfigsDirOption) ?? string.Empty;
211
var binDirectory = parseResult.
GetValue
(binDirectoryOption) ?? string.Empty;
212
var configuration = parseResult.
GetValue
(configurationOption) ?? string.Empty;
213
var tfm = parseResult.
GetValue
(tfmOption) ?? string.Empty;
214
var assembliesString = parseResult.
GetValue
(assembliesOption) ?? string.Empty;
216
var propsFileDir = parseResult.
GetValue
(propsFileDirOption) ?? string.Empty;
217
var propsFileName = parseResult.
GetValue
(propsFileNameOption) ?? string.Empty;
218
var targetsFileDir = parseResult.
GetValue
(targetsFileDirOption) ?? string.Empty;
219
var targetsFileName = parseResult.
GetValue
(targetsFileNameOption) ?? string.Empty;
220
var propsFileToDisableNetAnalyzersInNuGetPackageName = parseResult.
GetValue
(propsFileToDisableNetAnalyzersInNuGetPackageNameOption) ?? string.Empty;
221
var analyzerDocumentationFileDir = parseResult.
GetValue
(analyzerDocumentationFileDirOption) ?? string.Empty;
222
var analyzerDocumentationFileName = parseResult.
GetValue
(analyzerDocumentationFileNameOption) ?? string.Empty;
223
var analyzerSarifFileDir = parseResult.
GetValue
(analyzerSarifFileDirOption) ?? string.Empty;
224
var analyzerSarifFileName = parseResult.
GetValue
(analyzerSarifFileNameOption) ?? string.Empty;
225
var analyzerVersion = parseResult.
GetValue
(analyzerVersionOption) ?? string.Empty;
226
var analyzerPackageName = parseResult.
GetValue
(analyzerPackageNameOption) ?? string.Empty;
227
var containsPortedFxCopRules = parseResult.
GetValue
(containsPortedFxCopRulesOption);
228
var generateAnalyzerRulesMissingDocumentationFile = parseResult.
GetValue
(generateAnalyzerRulesMissingDocumentationFileOption);
229
var releaseTrackingOptOut = parseResult.
GetValue
(releaseTrackingOptOutOption);
230
var validateOffline = parseResult.
GetValue
(validateOfflineOption);
ilasm (2)
IlasmRootCommand.cs (1)
164
if (result.
GetValue
(WaitForDebugger))
Program.cs (1)
291
private T Get<T>(Option<T> option) => _command.Result.
GetValue
(option)!;
ilc (6)
ILCompilerRootCommand.cs (5)
285
if (result.
GetValue
(OptimizeSpace))
289
else if (result.
GetValue
(OptimizeTime))
293
else if (result.
GetValue
(Optimize))
304
string makeReproPath = result.
GetValue
(MakeReproPath);
313
Helpers.MakeReproPackage(makeReproPath, result.
GetValue
(OutputFilePath), args, result,
Program.cs (1)
839
private T Get<T>(Option<T> option) => _command.Result.
GetValue
(option);
Microsoft.DotNet.Cli.Definitions (2)
Commands\New\NewUpdateCommandDefinition.cs (1)
58
=> result.
GetValue
(CheckOnlyOption);
Common\TargetPlatformOptions.cs (1)
89
? parseResult.
GetValue
(ArchitectureOption)
Microsoft.DotNet.VersionTools.Cli (3)
Program.cs (3)
54
AssetsDirectory = result.
GetValue
(assetsDirectoryOption),
55
SearchPattern = result.
GetValue
(searchPatternOption),
56
Recursive = result.
GetValue
(recursiveOption)
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (3)
Program.cs (3)
42
var c = parseResult.
GetValue
(compressionLevelOption);
43
var s = parseResult.
GetValue
(sourcesOption);
44
var o = parseResult.
GetValue
(outputsOption);
Microsoft.NET.Sdk.StaticWebAssets.Tool (3)
Program.cs (3)
42
var c = parseResults.
GetValue
(compressionLevelOption);
43
var s = parseResults.
GetValue
(sourcesOption);
44
var o = parseResults.
GetValue
(outputsOption);
Microsoft.TemplateEngine.Cli (21)
Commands\create\TemplateCommandArgs.cs (4)
22
IsForceFlagSpecified = parseResult.
GetValue
(command.ForceOption);
23
IsDryRun = parseResult.
GetValue
(command.DryRunOption);
24
NoUpdateCheck = parseResult.
GetValue
(command.NoUpdateCheckOption);
40
AllowScripts = parseResult.
GetValue
(command.AllowScriptsOption);
Commands\details\DetailsCommandArgs.cs (2)
18
Interactive = parseResult.
GetValue
(detailsCommand.Definition.InteractiveOption);
19
AdditionalSources = parseResult.
GetValue
(detailsCommand.Definition.AddSourceOption);
Commands\GlobalArgs.cs (8)
18
DebugCustomSettingsLocation = parseResult.
GetValue
(definition.DebugCustomSettingsLocationOption);
19
DebugVirtualizeSettings = parseResult.
GetValue
(definition.DebugVirtualizeSettingsOption);
20
DebugAttach = parseResult.
GetValue
(definition.DebugAttachOption);
21
DebugReinit = parseResult.
GetValue
(definition.DebugReinitOption);
22
DebugRebuildCache = parseResult.
GetValue
(definition.DebugRebuildCacheOption);
23
DebugShowConfig = parseResult.
GetValue
(definition.DebugShowConfigOption);
48
return (parseResult.
GetValue
(command.ColumnsAllOption), parseResult.
GetValue
(command.ColumnsOption));
Commands\install\InstallCommandArgs.cs (4)
32
Interactive = parseResult.
GetValue
(installCommand.Definition.InteractiveOption);
33
AdditionalSources = parseResult.
GetValue
(installCommand.Definition.AddSourceOption);
34
Force = parseResult.
GetValue
(installCommand.Definition.ForceOption);
35
Prerelease = installCommand is not LegacyInstallCommand && parseResult.
GetValue
(installCommand.Definition.PrereleaseOption);
Commands\list\ListCommandArgs.cs (1)
36
IgnoreConstraints = parseResult.
GetValue
(command.Definition.IgnoreConstraintsOption);
Commands\update\UpdateCommandArgs.cs (2)
15
Interactive = parseResult.
GetValue
(definition.InteractiveOption);
16
AdditionalSources = parseResult.
GetValue
(definition.AddSourceOption);
NuGet.CommandLine.XPlat (156)
Commands\ConfigCommands\ConfigCommand.cs (5)
89
WorkingDirectory = parseResult.
GetValue
(workingDirectory),
127
WorkingDirectory = parseResult.
GetValue
(workingDirectory),
128
ShowPath = parseResult.
GetValue
(showPathOption),
166
ConfigFile = parseResult.
GetValue
(configFileOption),
196
ConfigFile = parseResult.
GetValue
(configFileOption),
Commands\DeleteCommand.cs (5)
75
string sourcePath = parseResult.
GetValue
(sourceOption);
76
string apiKeyValue = parseResult.
GetValue
(apiKeyOption);
77
bool nonInteractiveValue = parseResult.
GetValue
(nonInteractiveOption);
78
bool noServiceEndpoint = parseResult.
GetValue
(noServiceEndpointOption);
79
bool interactiveValue = parseResult.
GetValue
(interactiveOption);
Commands\LocalsCommand.cs (2)
49
bool clear = parseResult.
GetValue
(clearOption);
50
bool list = parseResult.
GetValue
(listOption);
Commands\NuGet\Add\DotnetNuGetAddCommand.cs (18)
52
Name = parseResult.
GetValue
(name),
53
Username = parseResult.
GetValue
(username),
54
Password = parseResult.
GetValue
(password),
55
StorePasswordInClearText = parseResult.
GetValue
(storePasswordInClearText),
56
ValidAuthenticationTypes = parseResult.
GetValue
(validAuthenticationTypes),
57
ProtocolVersion = parseResult.
GetValue
(protocolVersion),
58
Configfile = parseResult.
GetValue
(configfile),
59
AllowInsecureConnections = parseResult.
GetValue
(allowInsecureConnections),
99
PackageSource = parseResult.
GetValue
(packagesource),
100
Path = parseResult.
GetValue
(path),
101
Password = parseResult.
GetValue
(password),
102
StorePasswordInClearText = parseResult.
GetValue
(storePasswordInClearText),
103
StoreLocation = parseResult.
GetValue
(storeLocation),
104
StoreName = parseResult.
GetValue
(storeName),
105
FindBy = parseResult.
GetValue
(findBy),
106
FindValue = parseResult.
GetValue
(findValue),
107
Force = parseResult.
GetValue
(force),
108
Configfile = parseResult.
GetValue
(configfile),
Commands\NuGet\Disable\DotnetNuGetDisableCommand.cs (1)
30
Configfile = parseResult.
GetValue
(configfile),
Commands\NuGet\Enable\DotnetNuGetEnableCommand.cs (1)
30
Configfile = parseResult.
GetValue
(configfile),
Commands\NuGet\List\DotnetNuGetListCommand.cs (3)
37
Format = parseResult.
GetValue
(format),
38
Configfile = parseResult.
GetValue
(configfile),
60
Configfile = parseResult.
GetValue
(configfile),
Commands\NuGet\Remove\DotnetNuGetRemoveCommand.cs (3)
38
Configfile = parseResult.
GetValue
(configfile),
62
PackageSource = parseResult.
GetValue
(packagesource),
63
Configfile = parseResult.
GetValue
(configfile),
Commands\NuGet\Update\DotnetNuGetUpdateCommand.cs (18)
52
Source = parseResult.
GetValue
(source),
53
Username = parseResult.
GetValue
(username),
54
Password = parseResult.
GetValue
(password),
55
StorePasswordInClearText = parseResult.
GetValue
(storePasswordInClearText),
56
ValidAuthenticationTypes = parseResult.
GetValue
(validAuthenticationTypes),
57
ProtocolVersion = parseResult.
GetValue
(protocolVersion),
58
Configfile = parseResult.
GetValue
(configfile),
59
AllowInsecureConnections = parseResult.
GetValue
(allowInsecureConnections),
99
PackageSource = parseResult.
GetValue
(packagesource),
100
Path = parseResult.
GetValue
(path),
101
Password = parseResult.
GetValue
(password),
102
StorePasswordInClearText = parseResult.
GetValue
(storePasswordInClearText),
103
StoreLocation = parseResult.
GetValue
(storeLocation),
104
StoreName = parseResult.
GetValue
(storeName),
105
FindBy = parseResult.
GetValue
(findBy),
106
FindValue = parseResult.
GetValue
(findValue),
107
Force = parseResult.
GetValue
(force),
108
Configfile = parseResult.
GetValue
(configfile),
Commands\Package\Download\PackageDownloadCommand.cs (7)
84
Sources = parserResult.
GetValue
(sources),
85
OutputDirectory = parserResult.
GetValue
(outputDirectory),
86
IncludePrerelease = parserResult.
GetValue
(prerelease),
87
AllowInsecureConnections = parserResult.
GetValue
(allowInsecureConnections),
88
Interactive = parserResult.
GetValue
(interactiveOption),
89
ConfigFile = parserResult.
GetValue
(configFile),
90
LogLevel = (parserResult.
GetValue
(verbosity) ?? VerbosityEnum.normal).ToLogLevel()
Commands\Package\Update\PackageUpdateCommand.cs (4)
51
FileSystemInfo? project = args.
GetValue
(projectOption);
53
bool interactive = args.
GetValue
(interactiveOption);
54
VerbosityEnum verbosity = args.
GetValue
(verbosityOption) ?? VerbosityEnum.normal;
56
bool vulnerable = args.
GetValue
(vulnerableOption);
Commands\PackageReferenceCommands\AddPackageReferenceCommand.cs (10)
98
var idValue = parseResult.
GetValue
(id);
99
var projectPathValue = parseResult.
GetValue
(projectPath);
100
var dgFilePathValue = parseResult.
GetValue
(dgFilePath);
101
var noRestoreValue = parseResult.
GetValue
(noRestore);
102
var prereleaseValue = parseResult.
GetValue
(prerelease);
103
var versionValue = parseResult.
GetValue
(version);
117
var frameworkValues = parseResult.
GetValue
(frameworks) ?? Array.Empty<string>();
118
var sourceValues = parseResult.
GetValue
(sources) ?? Array.Empty<string>();
124
PackageDirectory = parseResult.
GetValue
(packageDirectory),
128
Interactive = parseResult.
GetValue
(interactive),
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (14)
150
var verbosityValue = parseResult.
GetValue
(verbosity) ?? string.Empty;
154
var configValue = parseResult.
GetValue
(config);
158
var sourceValues = parseResult.
GetValue
(source) ?? Array.Empty<string>();
163
isOutdated: parseResult.
GetValue
(outdatedReport),
164
isDeprecated: parseResult.
GetValue
(deprecatedReport),
165
isVulnerable: parseResult.
GetValue
(vulnerableReport));
167
IReportRenderer reportRenderer = GetOutputType(consoleOut ?? Console.Out, consoleError ?? Console.Error, parseResult.
GetValue
(outputFormat), outputVersionOption: parseResult.
GetValue
(outputVersion));
169
var frameworkValues = parseResult.
GetValue
(framework) ?? Array.Empty<string>();
176
parseResult.
GetValue
(includeTransitive),
177
parseResult.
GetValue
(prerelease),
178
parseResult.
GetValue
(highestPatch),
179
parseResult.
GetValue
(highestMinor),
186
DefaultCredentialServiceUtility.SetupDefaultCredentialService(getLogger(), !parseResult.
GetValue
(interactive));
Commands\PackageReferenceCommands\RemovePackageReferenceCommand.cs (3)
48
var idValue = parseResult.
GetValue
(id);
49
var projectPathValue = parseResult.
GetValue
(projectPath);
57
Interactive = parseResult.
GetValue
(interactive),
Commands\PackageSearch\PackageSearchCommand.cs (9)
106
var packageSearchArgs = new PackageSearchArgs(parserResult.
GetValue
(skip), parserResult.
GetValue
(take), parserResult.
GetValue
(format), parserResult.
GetValue
(verbosity))
108
Sources = parserResult.
GetValue
(sources),
110
ExactMatch = parserResult.
GetValue
(exactMatch),
111
Interactive = parserResult.
GetValue
(interactive),
112
Prerelease = parserResult.
GetValue
(prerelease),
117
return await setupSettingsAndRunSearchAsync(packageSearchArgs, parserResult.
GetValue
(configFile), cancelationToken);
Commands\PushCommand.cs (12)
121
string? sourcePath = parseResult.
GetValue
(sourceOption);
122
string? apiKeyValue = parseResult.
GetValue
(apiKeyOption);
123
string? symbolSourcePath = parseResult.
GetValue
(symbolSourceOption);
124
string? symbolApiKeyValue = parseResult.
GetValue
(symbolApiKeyOption);
125
bool disableBufferingValue = parseResult.
GetValue
(disableBufferingOption);
126
bool noSymbolsValue = parseResult.
GetValue
(noSymbolsOption);
127
bool noServiceEndpoint = parseResult.
GetValue
(noServiceEndpointOption);
128
bool skipDuplicateValue = parseResult.
GetValue
(skipDuplicateOption);
129
bool allowInsecureConnectionsValue = parseResult.
GetValue
(allowInsecureConnectionsOption);
130
bool interactiveValue = parseResult.
GetValue
(interactiveOption);
131
string? timeoutValue = parseResult.
GetValue
(timeoutOption);
132
string? configFile = parseResult.
GetValue
(configFileOption);
Commands\Signing\SignCommand.cs (13)
135
string? pathValue = parseResult.
GetValue
(path);
136
string? fingerprintValue = parseResult.
GetValue
(fingerprint);
137
string? subjectValue = parseResult.
GetValue
(subject);
138
string? storeValue = parseResult.
GetValue
(store);
139
string? locationValue = parseResult.
GetValue
(location);
140
string? outputDirectoryValue = parseResult.
GetValue
(outputDirectory);
141
string? timestamperValue = parseResult.
GetValue
(timestamper);
142
string? algorithmValue = parseResult.
GetValue
(algorithm);
143
string? timestamperAlgorithmValue = parseResult.
GetValue
(timestamperAlgorithm);
165
CertificatePassword = parseResult.
GetValue
(password),
168
Overwrite = parseResult.
GetValue
(overwrite),
169
AllowUntrustedRoot = parseResult.
GetValue
(allowUntrustedRoot),
176
setLogLevel(XPlatUtility.MSBuildVerbosityToNuGetLogLevel(parseResult.
GetValue
(verbosity)));
Commands\Signing\TrustedSignersCommand.cs (23)
37
return await ExecuteCommand(TrustCommand.List, algorithm: null, allowUntrustedRootOption: false, owners: null, parseResult.
GetValue
(verbosity), parseResult.
GetValue
(configFile), getLogger, setLogLevel);
55
return await ExecuteCommand(TrustCommand.Sync, algorithm: null, allowUntrustedRootOption: false, owners: null, parseResult.
GetValue
(verbosity), parseResult.
GetValue
(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name));
73
return await ExecuteCommand(TrustCommand.Remove, algorithm: null, allowUntrustedRootOption: false, owners: null, parseResult.
GetValue
(verbosity), parseResult.
GetValue
(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name));
95
return await ExecuteCommand(TrustCommand.Author, algorithm: null, parseResult.
GetValue
(allowUntrustedRootOption), owners: null, parseResult.
GetValue
(verbosity), parseResult.
GetValue
(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name), sourceUrl: null, packagePath: parseResult.GetValue(package));
119
return await ExecuteCommand(TrustCommand.Repository, algorithm: null, parseResult.
GetValue
(allowUntrustedRootOption), owners: parseResult.
GetValue
(owners), parseResult.
GetValue
(verbosity), parseResult.
GetValue
(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name), sourceUrl: null, packagePath: parseResult.GetValue(package));
143
return await ExecuteCommand(TrustCommand.Certificate, algorithm: parseResult.
GetValue
(algorithm), parseResult.
GetValue
(allowUntrustedRootOption), owners: null, parseResult.
GetValue
(verbosity), parseResult.
GetValue
(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name), sourceUrl: null, packagePath: null, fingerprint: parseResult.GetValue(fingerprint));
165
return await ExecuteCommand(TrustCommand.Source, algorithm: null, allowUntrustedRootOption: false, owners: parseResult.
GetValue
(owners), parseResult.
GetValue
(verbosity), parseResult.
GetValue
(configFile), getLogger, setLogLevel, name: parseResult.GetValue(name), sourceUrl: parseResult.
GetValue
(sourceUrl));
180
return await ExecuteCommand(TrustCommand.List, algorithm: null, allowUntrustedRootOption: false, owners: null, parseResult.
GetValue
(mainVerbosity), parseResult.
GetValue
(mainConfigFile), getLogger, setLogLevel);
Commands\Signing\VerifyCommand.cs (4)
71
args.Verifications = parseResult.
GetValue
(all) ?
74
args.CertificateFingerprint = new List<string>(parseResult.
GetValue
(fingerPrint) ?? Array.Empty<string>());
76
args.Settings = XPlatUtility.ProcessConfigFile(parseResult.
GetValue
(configFile));
77
setLogLevel(XPlatUtility.MSBuildVerbosityToNuGetLogLevel(parseResult.
GetValue
(verbosity)));
Commands\Why\WhyCommand.cs (1)
114
Frameworks = parseResult.
GetValue
(frameworks)!,
SelectTests (11)
Program.cs (11)
95
var repoRoot = Path.GetFullPath(parseResult.
GetValue
(repoRootOption)!);
96
var mapPath = parseResult.
GetValue
(mapOption)
98
var slnxPath = parseResult.
GetValue
(slnxOption)
100
var from = parseResult.
GetValue
(fromOption);
101
var to = parseResult.
GetValue
(toOption);
102
var changedFilesPath = parseResult.
GetValue
(changedFilesOption);
103
var skipLayer1 = parseResult.
GetValue
(skipLayer1Option);
104
var forceAll = parseResult.
GetValue
(forceAllOption);
105
var forceAllReason = parseResult.
GetValue
(forceAllReasonOption);
106
var enforce = parseResult.
GetValue
(enforceOption);
107
var beforeBuildProps = parseResult.
GetValue
(beforeBuildPropsOption);
System.CommandLine (1)
Parsing\SymbolResult.cs (1)
116
/// <inheritdoc cref="ParseResult.
GetValue
{T}(Option{T})"/>
TypeScriptApiCompat (7)
Program.cs (7)
57
parseResult.
GetValue
(baselineOption)!,
58
parseResult.
GetValue
(currentOption)!,
59
parseResult.
GetValue
(suppressionsRootOption)!,
60
parseResult.
GetValue
(baselineSuppressionsRootOption),
61
parseResult.
GetValue
(excludedPackagesFileOption),
62
parseResult.
GetValue
(reportOption),
63
parseResult.
GetValue
(githubAnnotationsOption));