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-19 22:38:25 +0300
committerGitHub <noreply@github.com>2019-12-19 22:38:25 +0300
commit0a29c61468f60f815119e52e477d0154351a4abf (patch)
tree7476bba0396718b7edb5a7c8ef4e31262c580c50 /build.cmd
parent1bfa60c5e51e266cd86478620739b7de6a68bd63 (diff)
Fix .cmd scripts help arguments (#1043)
* Fix .cmd scripts help arguments * Support -? arg in .cmd scripts
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..c02fd0a1bda 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%