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 case "$it" in
-h | --help | --version ) -h | --help | --version )
usageExit ;; usageExit ;;
-p | --printresult ) -p | --printresult | --target=* )
if test "${args#*$it}" = "$args"; then if test "${args#*$it}" = "$args"; then
newArgs "$it" newArgs "$it"
else else

View File

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