Commit 6271c6f20ec12cd937e003cb5f6c49bfef777282

Made the usage screen a little more verbose
  • Diff rendering mode:
  • inline
  • side by side

new_project.sh

80}80}
8181
82usage() {82usage() {
83 echo "Usage is $0 --name <name of the project>"
83 echo " "
84 echo "Usage: "
85 echo "$0 --name <name of the project> : Create new trac project"
86 echo "$0 --help : Show this help"
87 echo " "
88 echo "-------"
89 echo "Trac Tools v0.1 (CC-SA) Servelots. 2013."
84}90}
8591
86setup() {92setup() {
101elif [ "$1" == "--name" ]; then101elif [ "$1" == "--name" ]; then
102 project=$2102 project=$2
103 if [ -z $project ]; then103 if [ -z $project ]; then
104 echo "You have to give a project name. Please see --help."
104 echo "Please specify a project name."
105 usage
105 exit 1;106 exit 1;
106 fi107 fi
107 readConfig108 readConfig
108 setup109 setup
109else110else
110 echo "Invalid option. Please see --help."
111 echo "Invalid option."
112 usage
111 exit 1;113 exit 1;
112fi114fi