Skip to content

Commit 3f7c4ee

Browse files
vsemozhetbytMylesBorins
authored andcommitted
build: do not cd on vcbuild help
`vcbuild help` just outputs help info and exits. If a user calls this command not from a project root, the directory change can be unexpected and unwanted. PR-URL: #19291 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7f652c2 commit 3f7c4ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vcbuild.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@if not defined DEBUG_HELPER @ECHO OFF
22

3-
cd %~dp0
4-
53
if /i "%1"=="help" goto help
64
if /i "%1"=="--help" goto help
75
if /i "%1"=="-help" goto help
@@ -11,6 +9,8 @@ if /i "%1"=="-?" goto help
119
if /i "%1"=="--?" goto help
1210
if /i "%1"=="/?" goto help
1311

12+
cd %~dp0
13+
1414
@rem Process arguments.
1515
set config=Release
1616
set target=Build

0 commit comments

Comments
 (0)