Adding inline help
This commit is contained in:
parent
2ad69d5c1e
commit
dcdbfa7123
@ -8,7 +8,7 @@ DATA_DIR=$(pwd)/data
|
||||
MAX_NUM=0
|
||||
VERBOSE=0
|
||||
|
||||
while getopts ":r:b:d:vxn:" opt
|
||||
while getopts ":r:b:d:vxn:h" opt
|
||||
do
|
||||
case ${opt} in
|
||||
r)
|
||||
@ -29,6 +29,11 @@ do
|
||||
x)
|
||||
set -x
|
||||
;;
|
||||
h)
|
||||
echo "Usage: $0 [-r <repository url>] [-b <branch>] [-d <absolute path dest>] [-n <num>] [-v] [-x] [-h]"
|
||||
echo "Ex: $0 -r $REPOSITORY -b $BRANCH -d $DATA_DIR"
|
||||
exit 0
|
||||
;;
|
||||
?)
|
||||
echo "Invalid option -${OPTARG}"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user