From d0a7272b57a9e76914b79f7c676096ec1ac1a61b 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 ec30beca3ae..fc3b8e28d6d 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