From 785bd6d69b85278078bc75528e721449e058a662 Mon Sep 17 00:00:00 2001 From: John McCabe Date: Sun, 21 Oct 2018 23:51:05 +0100 Subject: [PATCH] Add -help to deploy_stack.ps1 Signed-off-by: John McCabe --- deploy_stack.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/deploy_stack.ps1 b/deploy_stack.ps1 index c33ec00a..5df0812e 100644 --- a/deploy_stack.ps1 +++ b/deploy_stack.ps1 @@ -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