diff --git a/build.sh b/build.sh index afcaffd80..6230847d6 100755 --- a/build.sh +++ b/build.sh @@ -31,6 +31,17 @@ while [[ $# > 0 ]]; do export DOCKER_IMAGENAME=$2 shift ;; + --help) + echo "Usage: $0 [--configuration ] [--nopackage] [--docker ] [--help] " + echo "" + echo "Options:" + echo " --configuration Build the specified Configuration (Debug or Release, default: Debug)" + echo " --nopackage Skip packaging targets" + echo " --docker Build in Docker using the Dockerfile located in scripts/docker/IMAGENAME" + echo " --help Display this help message" + echo " The build targets to run (Init, Compile, Publish, etc.; Default is a full build and publish)" + exit 0 + ;; *) break ;; diff --git a/scripts/run-build.ps1 b/scripts/run-build.ps1 index a72a30e38..69ba71d9c 100644 --- a/scripts/run-build.ps1 +++ b/scripts/run-build.ps1 @@ -5,7 +5,20 @@ param( [string]$Configuration="Debug", - [switch]$NoPackage) + [switch]$NoPackage, + [switch]$Help) + +if($Help) +{ + Write-Host "Usage: ./build.cmd [-Configuration ] [-NoPackage] [-Help] " + Write-Host "" + Write-Host "Options:" + Write-Host " -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 " The build targets to run (Init, Compile, Publish, etc.; Default is a full build and publish)" + exit 0 +} $env:CONFIGURATION = $Configuration;