Improve parsing command line in build tools when using lots of quotes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user