From 17ab66adf4cb2e7ae6b37f4221295f3056bd8bf1 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 26 Nov 2020 14:23:23 +0100 Subject: [PATCH] PS: Add -help switch to il2cpp.ps1 --- Il2CppTests/il2cpp.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Il2CppTests/il2cpp.ps1 b/Il2CppTests/il2cpp.ps1 index dea3378..723166e 100644 --- a/Il2CppTests/il2cpp.ps1 +++ b/Il2CppTests/il2cpp.ps1 @@ -22,7 +22,9 @@ # gci $env:ProgramFiles\Unity\Hub\Editor | % { ./il2cpp.ps1 $_.Name } param ( - # Which source files in TestSources to generate aseemblies, C++ and IL2CPP binaries for (comma-separated) + [switch] $help, + + # Which source files in TestSources to generate aseemblies, C++ and IL2CPP binaries for (comma-separated, without .cs extension) [string[]] $assemblies = "*", # Which Unity version to use; uses the latest installed if not specified @@ -36,6 +38,11 @@ echo "Universal IL2CPP Build Utility" echo "(c) 2019-2020 Katy Coe - www.djkaty.com - www.github.com/djkaty" echo "" +if ($help) { + echo "Usage: il2cpp.ps1 [TestSources-source-file-without-extension,...] [Unity-version-with-wildcard|Unity-path-with-wildcard]" + Exit +} + $ErrorActionPreference = "SilentlyContinue" # Function to compare two Unity versions