Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
build: do not cd on vcbuild help
`vcbuild help` just outputs help info and exits.

If a user call this command not from a project root,
the directory change can be unexpected and unwanted.
  • Loading branch information
vsemozhetbyt committed Mar 12, 2018
commit 9df896e7bb1310c8be8eb2392a805ab29af6cdf4
4 changes: 2 additions & 2 deletions vcbuild.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@if not defined DEBUG_HELPER @ECHO OFF

cd %~dp0

if /i "%1"=="help" goto help
if /i "%1"=="--help" goto help
if /i "%1"=="-help" goto help
Expand All @@ -11,6 +9,8 @@ if /i "%1"=="-?" goto help
if /i "%1"=="--?" goto help
if /i "%1"=="/?" goto help

cd %~dp0

@rem Process arguments.
set config=Release
set target=Build
Expand Down