Closed rollenes closed 3 years ago
Tested on OSX and can repro issue with quoted args and confirm PR fixes it.
Tested with dotnet-args and dotnet-cake:
mkdir repro
cd repro
dotnet new tool-manifest --force
dotnet tool install Cake.Tool --version 1.0.0-rc0002
dotnet tool install dotnet-args --version 1.0.0
curl -Lsfo build.sh https://cakebuild.net/download/bootstrapper/dotnet-tool/osx
build.cake
Task("TestArg").Does(() =>
{
Information("Hello!");
Information(Argument<string>("quoted"));
Information("Bye!");
});
RunTarget(Argument<string>("target"));
@rollenes your changes have been merged, thanks for your contribution 👍
We get into errors when using origianl build.sh from https://cakebuild.net/docs/running-builds/runners/dotnet-tool#getting-the-bootstrapper
build.cake
Running:
$ ./build.sh --target=TestArg --quoted="test test"
Before fix:
After fix: