Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Fernandez Madero <safern@microsoft.com>2019-12-24 02:55:31 +0300
committerGitHub <noreply@github.com>2019-12-24 02:55:31 +0300
commitf77914d4c9045a01b3a91b63c28805f24850c274 (patch)
treeb0aa76c7fd09cf64e0b78b0c1cbefddcea09d3f8 /build.cmd
parent742a9b88eaf0296e17802520975326d02400478f (diff)
Fix .cmd scripts help arguments (#1131)
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd15
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%