From a190a9b07ed571e4ff2a7dde2d143c2acee6f24a Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Mon, 11 May 2020 14:57:10 +0100 Subject: [PATCH] Document environment variables in usage --- ue4-build.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ue4-build.ps1 b/ue4-build.ps1 index 9e2beda..2f6691e 100644 --- a/ue4-build.ps1 +++ b/ue4-build.ps1 @@ -23,6 +23,14 @@ function Print-Usage { Write-Output " -nocloseeditor : Don't close UE4 editor (this will prevent DLL cleanup)" Write-Output " -dryrun : Don't perform any actual actions, just report on what you would do" Write-Output " -help : Print this help" + Write-Output " " + Write-Output "Environment Variables:" + Write-Output " UE4INSTALL : Use a specific UE4 install." + Write-Output " : Default is to find one based on project version, under UE4ROOT" + Write-Output " UE4ROOT : Parent folder of all binary UE4 installs (detects version). " + Write-Output " : Default C:\Program Files\Epic Games" + Write-Output " " + } $ErrorActionPreference = "Stop" @@ -39,7 +47,7 @@ if (-not $mode) { Exit 3 } -if (-not (@('dev', 'test', 'prod') -contains $mode)) { +if (-not ($mode -in @('dev', 'test', 'prod'))) { Print-Usage Write-Output "ERROR: Invalid mode argument: $mode" Exit 3