PS: Add -help switch to il2cpp.ps1
This commit is contained in:
@@ -22,7 +22,9 @@
|
|||||||
# gci $env:ProgramFiles\Unity\Hub\Editor | % { ./il2cpp.ps1 <source-file-without-extension> $_.Name }
|
# gci $env:ProgramFiles\Unity\Hub\Editor | % { ./il2cpp.ps1 <source-file-without-extension> $_.Name }
|
||||||
|
|
||||||
param (
|
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 = "*",
|
[string[]] $assemblies = "*",
|
||||||
|
|
||||||
# Which Unity version to use; uses the latest installed if not specified
|
# 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 "(c) 2019-2020 Katy Coe - www.djkaty.com - www.github.com/djkaty"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
if ($help) {
|
||||||
|
echo "Usage: il2cpp.ps1 [TestSources-source-file-without-extension,...] [Unity-version-with-wildcard|Unity-path-with-wildcard]"
|
||||||
|
Exit
|
||||||
|
}
|
||||||
|
|
||||||
$ErrorActionPreference = "SilentlyContinue"
|
$ErrorActionPreference = "SilentlyContinue"
|
||||||
|
|
||||||
# Function to compare two Unity versions
|
# Function to compare two Unity versions
|
||||||
|
|||||||
Reference in New Issue
Block a user