mirror of
				https://github.com/spectreconsole/spectre.console.git
				synced 2025-10-25 15:19:23 +00: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
						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