Add token representation to remaining arguments

Before, when adding parsed information to the IRemainingArguments.Parsed,
we used the name of the parsed option ('foo') instead of it's
representation ('--foo'). This commit fixes that.
This commit is contained in:
Patrik Svensson
2024-04-23 14:04:00 +02:00
committed by Patrik Svensson
parent 95bff47b85
commit 71f762f646
6 changed files with 22 additions and 26 deletions

View File

@@ -51,7 +51,7 @@ public sealed partial class CommandAppTests
// Then
result.Output.ShouldBe(string.Empty);
result.Context.ShouldHaveRemainingArgument("version", new[] { (string)null });
result.Context.ShouldHaveRemainingArgument("--version", new[] { (string)null });
}
[Fact]
@@ -70,7 +70,7 @@ public sealed partial class CommandAppTests
// Then
result.Output.ShouldBe(string.Empty);
result.Context.ShouldHaveRemainingArgument("version", new[] { (string)null });
result.Context.ShouldHaveRemainingArgument("--version", new[] { (string)null });
}
[Fact]