Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
while (( $# ))
do
parameter="$1" && shift
case "${parameter}" in
(-D|--debug)
set -x
;;
(-V|--verbose)
VERBOSE=true
SILENCE=""
;;
(-v|--version)
__version
;;
(*)
echo "Unknown parameter ${parameter} ignored."
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment