Skip to content

Commit d711942

Browse files
avivkellertargos
authored andcommitted
build: use broader detection for 'help'
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>
1 parent 088dff1 commit d711942

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎vcbuild.bat‎

Lines changed: 3 additions & 8 deletions
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)