From d711942fce81080a3e99c5d4ab77acb10064660b Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Sat, 25 May 2024 15:00:02 -0400 Subject: [PATCH] build: use broader detection for 'help' PR-URL: https://github.com/nodejs/node/pull/53045 Reviewed-By: Stefan Stojanovic Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell --- vcbuild.bat | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/vcbuild.bat b/vcbuild.bat index ec30beca3ae668..fc3b8e28d6ddee 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -4,14 +4,9 @@ :: explicitly allow them to persist in the calling shell. endlocal -if /i "%1"=="help" goto help -if /i "%1"=="--help" goto help -if /i "%1"=="-help" goto help -if /i "%1"=="/help" goto help -if /i "%1"=="?" goto help -if /i "%1"=="-?" goto help -if /i "%1"=="--?" goto help -if /i "%1"=="/?" goto help +set "arg=%1" +if /i "%arg:~-1%"=="?" goto help +if /i "%arg:~-4%"=="help" goto help cd %~dp0