build: use broader detection for 'help'
PR-URL: https://github.com/nodejs/node/pull/53045 Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
0d7b5a938c
commit
d0a7272b57
11
vcbuild.bat
11
vcbuild.bat
@ -4,14 +4,9 @@
|
|||||||
:: explicitly allow them to persist in the calling shell.
|
:: explicitly allow them to persist in the calling shell.
|
||||||
endlocal
|
endlocal
|
||||||
|
|
||||||
if /i "%1"=="help" goto help
|
set "arg=%1"
|
||||||
if /i "%1"=="--help" goto help
|
if /i "%arg:~-1%"=="?" goto help
|
||||||
if /i "%1"=="-help" goto help
|
if /i "%arg:~-4%"=="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
|
|
||||||
|
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user