--- a/new_project.sh +++ b/new_project.sh @@ -80,7 +80,13 @@ } usage() { - echo "Usage is $0 --name " + echo " " + echo "Usage: " + echo "$0 --name : Create new trac project" + echo "$0 --help : Show this help" + echo " " + echo "-------" + echo "Trac Tools v0.1 (CC-SA) Servelots. 2013." } setup() { @@ -95,13 +101,15 @@ elif [ "$1" == "--name" ]; then project=$2 if [ -z $project ]; then - echo "You have to give a project name. Please see --help." + echo "Please specify a project name." + usage exit 1; fi readConfig setup else - echo "Invalid option. Please see --help." + echo "Invalid option." + usage exit 1; fi