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
|
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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
Loading…
Reference in New Issue