Created
June 7, 2016 01:41
-
-
Save waynerobinson/3428f1c7b424cd887da4a18998c668b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while [[ $# > 1 ]] | |
do | |
key="$1" | |
case $key in | |
-e|--extension) | |
EXTENSION="$2" | |
shift # past argument | |
;; | |
-s|--searchpath) | |
SEARCHPATH="$2" | |
shift # past argument | |
;; | |
-l|--lib) | |
LIBPATH="$2" | |
shift # past argument | |
;; | |
--default) | |
DEFAULT=YES | |
;; | |
*) | |
# unknown option | |
;; | |
esac | |
shift # past argument or value | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment