Skip to content

Commit

Permalink
build: use broader detection for 'help'
Browse files Browse the repository at this point in the history
PR-URL: #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 marco-ippolito committed Jul 19, 2024
1 parent 61ec2af commit 117ff5f
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 117ff5f

Please sign in to comment.