These must have an error because they expect an additional argument.
Change the behavior of the code to cause an error in this cases.
I took the lazy way out and just set the variables to trigger an error rather than implementing a specific error handler for these cases.
build_project=yes
elif [[ $p == "-s" || $p == "--path_scripts" ]] ; then
grab_next=path_scripts
+ path_scripts=
elif [[ $p == "-t" || $p == "--path_test" ]] ; then
grab_next=path_test
+ path_test=
elif [[ $test_system == "" ]] ; then
test_system="$p"
else
test_system=normal
fi
- if [[ $build_compiler == "" ]] ; then
+ if [[ $grab_next != "build_compiler" && $build_compiler == "" ]] ; then
build_compiler=gcc
fi