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:
authorJan Kotas <jkotas@microsoft.com>2019-12-21 23:54:56 +0300
committerGitHub <noreply@github.com>2019-12-21 23:54:56 +0300
commit188427d7e18102c45fc6d0e20c135e226f215992 (patch)
treeb95e71c99b232624c3413df7d20f17c5ba522fb0 /build.cmd
parentbd6c81a944f609b88908864827b7797c6b127c5b (diff)
Revert "Fix .cmd scripts help arguments (#1043)" (#1110)
This reverts commit 0a29c61468f60f815119e52e477d0154351a4abf.
Diffstat (limited to 'build.cmd')
-rw-r--r--build.cmd15
1 files changed, 11 insertions, 4 deletions
diff --git a/build.cmd b/build.cmd
index c02fd0a1bda..d8a22ef464f 100644
--- a/build.cmd
+++ b/build.cmd
@@ -1,8 +1,15 @@
@echo off
-setlocal
-set _args="%*"
-if "%~1"=="-?" set _args="-help"
+if "%~1"=="-h" goto help
+if "%~1"=="-help" goto help
+if "%~1"=="-?" goto help
+if "%~1"=="/?" goto help
-powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %_args%
+powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %*
+goto end
+
+:help
+powershell -ExecutionPolicy ByPass -NoProfile -Command "& { . '%~dp0eng\build.ps1'; Get-Help }"
+
+:end
exit /b %ERRORLEVEL%