mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-01 02:28:14 +08:00
Parse quoted strings correctly
When parsing quoted strings, space was not handled properly in remaining arguments. Fixes #186
This commit is contained in:

committed by
Patrik Svensson

parent
241423dd16
commit
79742ce9e3
@ -720,7 +720,7 @@ namespace Spectre.Console.Tests.Unit.Cli
|
||||
ctx.Remaining.Raw[0].ShouldBe("--foo");
|
||||
ctx.Remaining.Raw[1].ShouldBe("bar");
|
||||
ctx.Remaining.Raw[2].ShouldBe("-bar");
|
||||
ctx.Remaining.Raw[3].ShouldBe("\"baz\"");
|
||||
ctx.Remaining.Raw[3].ShouldBe("baz");
|
||||
ctx.Remaining.Raw[4].ShouldBe("qux");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user