gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl, typo
[mjc2wsl.git] / src / com / quemaster / transformations / mjc2wsl / mjc2wsl.java
index 3bbdf6e..7a74aa3 100644 (file)
@@ -681,7 +681,7 @@ public class mjc2wsl{
 
                        // read, print
                        case bread: {
-                               // TODO maybe we'll need a bufer for multi chars!
+                               // TODO maybe we'll need a buffer for multi chars!
                                prl(createStartVar("tempa"));
                                prl("@Read_Line_Proc(VAR tempa, Standard_Input_Port);");
                                prl("tempa := @String_To_List(tempa)[1];");
@@ -901,7 +901,8 @@ public class mjc2wsl{
                                } else if (args[i].compareToIgnoreCase("--genLocalsSeparate") == 0) {
                                        genLocalsAsArray = false;
                                } else {
-                                       System.err.println("unknown option: "+args[i]);
+                                       System.err.println("unknown option, refusing to continue: "+args[i]);
+                                       System.exit(1);
                                }
                                i++;
                        }
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner