Add -help to deploy_stack.ps1

Signed-off-by: John McCabe <john@johnmccabe.net>
This commit is contained in:
John McCabe
2018-10-21 23:51:05 +01:00
committed by Alex Ellis
parent 5d7776c951
commit 785bd6d69b

View File

@ -2,9 +2,19 @@
param (
[switch] $noAuth,
[switch] $n
[switch] $n,
[switch] $help,
[switch] $h
)
if ($help -Or $h) {
Write-Host "Usage: "
Write-Host " [default]`tdeploy the OpenFaaS core services"
Write-Host " -noAuth [-n]`tdisable basic authentication"
Write-Host " -help [-h]`tdisplays this screen"
Exit
}
if (Get-Command docker -errorAction SilentlyContinue)
{
docker node ls 2>&1 | out-null