some args are optional, do not return errors

This commit is contained in:
Daniel Steglich 2015-01-04 14:31:41 +01:00
parent af22962bbe
commit eb80d3c68a

View File

@ -75,10 +75,6 @@ doGetOpt()
echo "Invalid option: -$OPTARG" >&2 echo "Invalid option: -$OPTARG" >&2
exit 1 exit 1
;; ;;
:)
echo "Option -$OPTARG requires an argument." >&2
exit 1
;;
esac esac
done done
} }
@ -253,9 +249,10 @@ case $cmd in
echo "-I <IP check URL> A URL which returns the IP of the client who is requesting" echo "-I <IP check URL> A URL which returns the IP of the client who is requesting"
echo "" echo ""
echo "update do a one time update" echo "update do a one time update"
echo "clean delete configuration" echo "clean delete configuration"
echo "success store update success" echo "success store update success"
echo "failed store update failure" echo "failed store update failure"
echo "get-nat return the detected nat type"
;; ;;
esac esac
exit 0 exit 0