david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0

added option handler draft

This commit is contained in:
david 2013-03-14 16:37:05 +01:00
parent 7015f8c924
commit 70704f01c7
1 changed files with 26 additions and 0 deletions

26
option_handler.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/sh
# shell option handler
version="0.1"
author="david@socialnerds.org"
while getopts c:s:vh options
do
case "$options" in
c)
echo "configfile = $OPTARG";;
s)
echo "sourcefile = $OPTARG";;
v)
echo "version message";;
h)
echo "help message";;
?)
echo "questionmark";;
*)
echo "nothing";;
esac
done