Merge pull request #82 from adn77/master

Added --version
This commit is contained in:
Alex 2020-01-20 20:29:05 +01:00 committed by GitHub
commit 9c33b54465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -195,6 +195,10 @@ usage()
while [ "$#" -gt 0 ] ; do while [ "$#" -gt 0 ] ; do
case "$1" in case "$1" in
--version)
echo "v0.15b"
exit 0
;;
-d) -d)
if [ "${2#-}" != "${2}" -o -z "$2" ] ; then if [ "${2#-}" != "${2}" -o -z "$2" ] ; then
echo "ERROR: missing argument for ${1}" echo "ERROR: missing argument for ${1}"

View File

@ -139,6 +139,10 @@ usage()
while [ "$#" -gt 0 ] ; do while [ "$#" -gt 0 ] ; do
case "$1" in case "$1" in
--version)
echo "v0.15b"
exit 0
;;
-d) -d)
if [ "${2#-}" != "${2}" -o -z "$2" ] ; then if [ "${2#-}" != "${2}" -o -z "$2" ] ; then
echo "ERROR: missing argument for ${1}" echo "ERROR: missing argument for ${1}"