Skip to content

Commit

Permalink
build: use broader detection for 'help'
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
RedYetiDev authored and eliphazbouye committed Jun 20, 2024
1 parent 050e7ca commit 982233d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 982233d

Please sign in to comment.