diff options
author | Santiago Fernandez Madero <safern@microsoft.com> | 2019-12-24 02:55:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-24 02:55:31 +0300 |
commit | f77914d4c9045a01b3a91b63c28805f24850c274 (patch) | |
tree | b0aa76c7fd09cf64e0b78b0c1cbefddcea09d3f8 /build.cmd | |
parent | 742a9b88eaf0296e17802520975326d02400478f (diff) |
Fix .cmd scripts help arguments (#1131)
Diffstat (limited to 'build.cmd')
-rw-r--r-- | build.cmd | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/build.cmd b/build.cmd index d8a22ef464f..9474e960d71 100644 --- a/build.cmd +++ b/build.cmd @@ -1,15 +1,8 @@ @echo off +setlocal -if "%~1"=="-h" goto help -if "%~1"=="-help" goto help -if "%~1"=="-?" goto help -if "%~1"=="/?" goto help +set _args=%* +if "%~1"=="-?" set _args=-help -powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %* -goto end - -:help -powershell -ExecutionPolicy ByPass -NoProfile -Command "& { . '%~dp0eng\build.ps1'; Get-Help }" - -:end +powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %_args% exit /b %ERRORLEVEL% |