Commit e786c35c authored by Nigel Kukard's avatar Nigel Kukard

Merge branch 'add-help' into 'master'

Add help option

See merge request !34
parents c4cd604e 482890a2
Pipeline #1196 passed with stages
in 2 minutes and 9 seconds
......@@ -17,13 +17,28 @@
#set -e -x
function show_help {
cat <<-EOF
$0 [-hv] [-o lv-name] [daily|weekly]
-h Show this help.
-v Show verbose debug information & set debug options.
-o Only do a backup of the specified lv.
EOF
}
export PATH="$PATH:/sbin:/usr/sbin"
# Parse options
OPTIND=1
while getopts ":o:v" OPTION
while getopts ":ho:v" OPTION
do
case "$OPTION" in
h)
show_help
exit 0
;;
o)
ONLY="$OPTARG"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment