say i have two bash script file: main.sh and sub.sh
the codes look like following.
i would like to know, how should i modify sub.sh to support commandline, what i want get is:
1: if one call main.sh, it should just " isNotDebugModel" displayed.
2: If one call sub.sh, he has opportunity to input parameter, something like
bash ./sub.sh true
bash ./sub.sh false
by "true" the output should be "isDebugModel", by "false" "isNotDebugModel".