5 references to GetResult
dotnet (2)
Commands\Pack\PackCommand.cs (1)
117var globalProperties = parseResult.GetResult("--property") is OptionResult propResult ? propResult.GetValueOrDefault<ReadOnlyDictionary<string, string>?>() : null;
Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
24&& parseResult.GetResult(optionName) is OptionResult optionResult
Microsoft.DotNet.Cli.CommandLine (2)
ResultNavigationExtensions.cs (2)
51if (parseResult.GetResult(name) is OptionResult optionResult // only return a value if there _is_ a value - default or otherwise 83=> parseResult.GetResult(name) is OptionResult or && !or.Implicit;
Microsoft.DotNet.Cli.Utils (1)
MSBuildArgs.cs (1)
134/// We can't use <see cref="ParseResult.GetResult(string)"/> to check if the names of the options we care