mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-22 09:35:48 +08:00
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:
committed by
Patrik Svensson
parent
95bff47b85
commit
71f762f646
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user