diff --git a/phpsg.sh b/phpsg.sh index d5a0f11..98b9753 100755 --- a/phpsg.sh +++ b/phpsg.sh @@ -34,6 +34,20 @@ function print_usage() { echo "$0 -S [-o ]" } +function print_help() { + printf "PHP Site Generator\n\n" + printf "SYNOPSIS:\n" + print_usage + + printf "\nOPTIONS:\n" + printf "\t-o Output directory\n" + printf "\t-s Source directory\n" + printf "\t-j Number of jobs to run\n" + printf "\t-S Run a server on localhost:8080\n" + printf "\t-h Show help information\n" + printf "\n" +} + while getopts "o:s:j:Sh" opt do case "$opt" in @@ -56,7 +70,7 @@ do SERVER_FLAG=1 ;; h) - print_usage + print_help exit ;; *)