add help to build.cmd

This commit is contained in:
Andrew Stanton-Nurse 2016-02-16 12:22:25 -08:00
parent c2f08bd853
commit 10772464c7
2 changed files with 25 additions and 1 deletions

View file

@ -5,7 +5,20 @@
param(
[string]$Configuration="Debug",
[switch]$NoPackage)
[switch]$NoPackage,
[switch]$Help)
if($Help)
{
Write-Host "Usage: ./build.cmd [-Configuration <CONFIGURATION>] [-NoPackage] [-Help] <TARGETS...>"
Write-Host ""
Write-Host "Options:"
Write-Host " -Configuration <CONFIGURATION> Build the specified Configuration (Debug or Release, default: Debug)"
Write-Host " -NoPackage Skip packaging targets"
Write-Host " -Help Display this help message"
Write-Host " <TARGETS...> The build targets to run (Init, Compile, Publish, etc.; Default is a full build and publish)"
exit 0
}
$env:CONFIGURATION = $Configuration;