+# parse command line options
+while getopts P: opt; do
+ case $opt in
+ P) PATH=$OPTARG:$PATH ;;
+ *) printf "zpm unknown option '%s'\n" "$opt"; exit 1 ;;
+ esac
+done
+shift $((OPTIND - 1))
+
+#: ${ZPMPATH:=/usr/libexec/zpm}
+
+if [ -n "$ZPMPATH" ]; then
+ PATH="$PATH:$ZPMPATH"
+fi