From 32ee02c3adde02f03b567e0b1405858d08b3a049 Mon Sep 17 00:00:00 2001 From: Andreas 'count' Kotes Date: Fri, 25 Oct 2019 01:56:41 +0200 Subject: [PATCH] Add command list / help command (#585) Signed-off-by: Andreas 'count' Kotes --- scripts/bitwarden.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/bitwarden.sh b/scripts/bitwarden.sh index 27ac460906..f6e982f5b9 100755 --- a/scripts/bitwarden.sh +++ b/scripts/bitwarden.sh @@ -73,6 +73,21 @@ function checkOutputDirNotExists() { fi } +function commandList() { +cat << EOT +Available commands: + +install +update +rebuild +updateconf +updatedb +stop +updateself + +EOT +} + # Commands if [ "$1" == "install" ] @@ -109,6 +124,11 @@ then elif [ "$1" == "updateself" ] then downloadSelf && echo "Updated self." && exit +elif [ "$1" == "help" ] +then + commandList else echo "No command found." + echo + commandList fi