Add -n option for normal project type
For consistency, I added this option, so any project type can be explicitly specified. Of course, this option is the default, so it can be left out to yield the existing behaviour.
This commit is contained in:
@ -10,7 +10,7 @@ simple=0
|
||||
usegitroot=0
|
||||
|
||||
usage() {
|
||||
echo "usage: $progname [-f|-l|-s] [[-d] -g <gitroot>|-G] [-t <tplroot>] PROJECTNAME" >&2
|
||||
echo "usage: $progname [-f|-l|-n|-s] [[-d] -g <gitroot>|-G] [-t <tplroot>] PROJECTNAME" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ check_gitroot() {
|
||||
progname=${0##*/}
|
||||
|
||||
# option processing, using silent mode
|
||||
while getopts :dfGg:lst:v opt
|
||||
while getopts :dfGg:lnst:v opt
|
||||
do
|
||||
case $opt in
|
||||
d)
|
||||
@ -49,6 +49,11 @@ do
|
||||
l)
|
||||
library=1
|
||||
;;
|
||||
n)
|
||||
mainfile=main.cpp
|
||||
library=0
|
||||
simple=0
|
||||
;;
|
||||
s)
|
||||
simple=1
|
||||
;;
|
||||
|
Reference in New Issue
Block a user