Fix: catch unknown flags in all remaining implementations

Added unknown flag validation to session command in:
awk, clj, cob, erl, ex, f90, forth, fs, lisp, ml, pro, r, scm, tcl, Java

Now all 42+ implementations properly reject unknown flags with
'Unknown option' error instead of making confusing API requests.
This commit is contained in:
Russell Ballestrini 2026-01-04 09:01:39 -05:00
parent 35b3ab615a
commit 09ec15aa62
15 changed files with 126 additions and 11 deletions

View file

@ -877,6 +877,10 @@ public class Un {
result.keyExtend = true;
} else if (!arg.startsWith("-")) {
result.sourceFile = arg;
} else {
System.err.println("Unknown option: " + arg);
printHelp();
System.exit(1);
}
}
return result;