Skip to content

Instantly share code, notes, and snippets.

@wayneeseguin
Created April 19, 2012 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wayneeseguin/2418091 to your computer and use it in GitHub Desktop.
Save wayneeseguin/2418091 to your computer and use it in GitHub Desktop.
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