Add the "--target=" parameter to the shell command.
This commit is contained in:
parent
810c94752f
commit
76cd97715f
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue