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 May 25, 2024
1 parent 0d7b5a9 commit d0a7272
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 d0a7272

Please sign in to comment.