Add the "--target=" parameter to the shell command.

This commit is contained in:
Username404-59 2021-03-25 21:33:42 +01:00
parent 810c94752f
commit 76cd97715f
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ if [ "$#" != 0 ]; then
case "$it" in
-h | --help | --version )
usageExit ;;
-p | --printresult )
-p | --printresult | --target=* )
if test "${args#*$it}" = "$args"; then
newArgs "$it"
else

View File

@ -35,8 +35,8 @@ string transpile(ParseTree tree, string language)
}
// TODO Actually transpile
} else {
cout << '"' << (char) toupper(language.at(1)) << language.erase(0, 2) << "\" is not a valid target.";
exit(1);
cout << '"' << (char) toupper(language.at(1)) << language.erase(0, 2) << "\" is not a valid target." << endl;
exit(0);
}
return transpiled;
}