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 <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
OnlyAviv authored and targos committed Jun 1, 2024
1 parent 088dff1 commit d711942
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 d711942

Please sign in to comment.