From d0707b3df434a0028ac2e588a8bb7a6a8714d764 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Wed, 30 Jul 2014 11:21:41 +0200 Subject: [PATCH] Added helptext. --- backmeupscotty | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/backmeupscotty b/backmeupscotty index b3c2703..257c192 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -135,8 +135,19 @@ function cleanup_normal { scottyinfo "No cleanup_normal function was defined." } +function printhelp { + cat < /dev/null @@ -144,9 +155,13 @@ function backmeupscotty { n) BACKUP_RUNEVERYNTHDAY=$OPTARG ;; + h) + printhelp + exit 0 + ;; esac done - + if ! isIncompleteOrNthDay; then scottyinfo "This is not the nth day and no incomplete backup exists." exit 0 -- 2.39.5