Improve parsing command line in build tools when using lots of quotes

This commit is contained in:
Wojtek Figat
2023-09-20 10:06:16 +02:00
parent 1740cbf2eb
commit 34a36d822a
2 changed files with 32 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ namespace Flax.Build.Tests
[Test, Sequential]
public void TestParseOptionOnly([Values(
"-something",
"something",
" \t \t-\t \tsomething\t ",
"-something=")]
string commandLine)
@@ -25,6 +26,11 @@ namespace Flax.Build.Tests
[Test, Sequential]
public void TestParseOneValue([Values(
"-something=value",
"something=value",
"-something=\"value\"",
"-something=\\\"value\\\"",
"\"-something=\"value\"\"",
"\"-something=\\\"value\\\"\"",
" \t \t-\t \tsomething\t =value ",
"-something=value ")]
string commandLine)