cake-build / cake-build/website
Example with -ScripArgs is not working with multiple
- Dominant language
- HTML
- Stars
- 52
- Forks
- 256
- Avg merge
- 4h 42m
- Merged PRs (30d)
- 8
Description
On the page http://cakebuild.net/docs/fundamentals/args-and-environment-vars there is an example with `-ScriptArgs`: `powershell -File build.ps1 -ScriptArgs '-my_setting="from a batch file"'`
Now when using this example with multiple script args in one string eg:
`-ScriptArgs`: `powershell -File build.ps1 -ScriptArgs '-someflag -my_setting="from a batch file"'`
I get the error
> A parameter cannot be found that matches parameter name 'my_setting'
The first parameter seems to work.
Changing the quotes to:
`-ScriptArgs`: `powershell -File build.ps1 -ScriptArgs "-someflag -my_setting=\"from a batch file\""` fixes that issue.
An alternative that seems to work would be:
`-ScriptArgs`: `powershell -File build.ps1 -ScriptArgs '-someflag','-my_setting="from a batch file"'` (no space between the arguments!)
Took me some time to figure this out so I think it would be worth mentioning that somewhere.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.