Skip to content

Commit 3d97808

Browse files
Fixed CI issues with Xml comments and some NRT issues
1 parent 1093825 commit 3d97808

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/System.CommandLine.Subsystems/PipelineResult.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
namespace System.CommandLine;
77

8-
public class PipelineResult(ParseResult? parseResult, string rawInput, Pipeline? pipeline, ConsoleHack? consoleHack = null)
8+
public class PipelineResult(ParseResult parseResult, string rawInput, Pipeline? pipeline, ConsoleHack? consoleHack = null)
99
{
1010
// TODO: Try to build workflow so it is illegal to create this without a ParseResult
1111
private readonly List<ParseError> errors = [];
12-
public ParseResult? ParseResult { get; } = parseResult;
12+
public ParseResult ParseResult { get; } = parseResult;
1313
private ValueProvider valueProvider { get; } = new ValueProvider(parseResult);
1414
public string RawInput { get; } = rawInput;
1515

@@ -26,8 +26,8 @@ public class PipelineResult(ParseResult? parseResult, string rawInput, Pipeline?
2626
public object? GetValue(CliValueSymbol option)
2727
=> valueProvider.GetValue<object?>(option);
2828

29-
public CliValueResult GetValueResult(CliValueSymbol dataSymbol)
30-
=> parseResult.GetValueResult(dataSymbol);
29+
public CliValueResult? GetValueResult(CliValueSymbol dataSymbol)
30+
=> ParseResult.GetValueResult(dataSymbol);
3131

3232

3333
public void AddErrors(IEnumerable<ParseError> errors)

src/System.CommandLine/ParseResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ CommandLineText is null
205205
/// <summary>
206206
/// Gets the ValueResult, if any, for the specified option or argument
207207
/// </summary>
208-
/// <param name="option">The option for which to find a result.</param>
208+
/// <param name="valueSymbol">The option or argument for which to find a result.</param>
209209
/// <returns>A result for the specified option, or <see langword="null"/> if it was not entered by the user.</returns>
210210
public CliValueResult? GetValueResult(CliValueSymbol valueSymbol)
211211
=> GetValueResultInternal(valueSymbol);

0 commit comments

Comments
 (0)