|
|
@ -132,12 +132,18 @@ while [[ $# -gt 0 ]]; do
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
-h|--help)
|
|
|
|
-h|--help)
|
|
|
|
echo "Usage:"
|
|
|
|
echo "Usage: sim.bz [-i | -x | -a | -r ] [subdomain]"
|
|
|
|
echo " sim.bz -- print sim.bz link for current directory"
|
|
|
|
echo " Creates sym links in $SYM_LINK_DIR for use with sim.bz dev domain"
|
|
|
|
echo " sim.bz -i -- show link using internal ip addresses"
|
|
|
|
echo " If sym link already exists it will print out the url for the"
|
|
|
|
echo " sim.bz -x -- show link using external ip address"
|
|
|
|
echo " current directory."
|
|
|
|
echo " sim.bz -a -- show link for all addresses"
|
|
|
|
echo " For setup see: http://goodrobot.sim.bz/posts/local-dev.html"
|
|
|
|
echo " sim.bz -r -- remove link for current directory"
|
|
|
|
echo "Options:"
|
|
|
|
|
|
|
|
echo " subdomain : the string to use for linking to this directory."
|
|
|
|
|
|
|
|
echo " Defaults to current directory"
|
|
|
|
|
|
|
|
echo " -i : show link using internal ip addresses"
|
|
|
|
|
|
|
|
echo " -x : show link using external ip address"
|
|
|
|
|
|
|
|
echo " -a : show link for all addresses"
|
|
|
|
|
|
|
|
echo " -r : remove link for current directory"
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|