Skip to content

Commit d711942

Browse files
avivkellertargos
authored andcommitted
build: use broader detection for 'help'
PR-URL: #53045 Reviewed-By: Stefan Stojanovic <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 088dff1 commit d711942

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

vcbuild.bat

+3-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@
44
:: explicitly allow them to persist in the calling shell.
55
endlocal
66

7-
if /i "%1"=="help" goto help
8-
if /i "%1"=="--help" goto help
9-
if /i "%1"=="-help" goto help
10-
if /i "%1"=="/help" goto help
11-
if /i "%1"=="?" goto help
12-
if /i "%1"=="-?" goto help
13-
if /i "%1"=="--?" goto help
14-
if /i "%1"=="/?" goto help
7+
set "arg=%1"
8+
if /i "%arg:~-1%"=="?" goto help
9+
if /i "%arg:~-4%"=="help" goto help
1510

1611
cd %~dp0
1712

0 commit comments

Comments
 (0)