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