(String err, boolean usage)
| 117 | } |
| 118 | |
| 119 | public static void error(String err, boolean usage) { |
| 120 | System.err.println("unluac v" + version); |
| 121 | System.err.print(" error: "); |
| 122 | System.err.println(err); |
| 123 | if(usage) { |
| 124 | System.err.println(" usage: java -jar unluac.jar [options] <file>"); |
| 125 | } |
| 126 | System.exit(1); |
| 127 | } |
| 128 | |
| 129 | private static LFunction file_to_function(String fn, Configuration config) throws IOException { |
| 130 | RandomAccessFile file = null; |