mirror of
https://github.com/zaaarf/lillero-mapping-writer.git
synced 2024-11-22 20:54:50 +01:00
fix: don't bother with error catching
This commit is contained in:
parent
5bd9f685b1
commit
4cb9bb46e0
1 changed files with 48 additions and 51 deletions
|
@ -21,10 +21,10 @@ public class MappingWriter {
|
||||||
/**
|
/**
|
||||||
* The main function, must be passed exactly two arguments
|
* The main function, must be passed exactly two arguments
|
||||||
* @param args the command line arguments
|
* @param args the command line arguments
|
||||||
* @throws IOException if something goes wrong
|
* @throws IOException if something goes wrong while writing the file
|
||||||
|
* @throws ParseException if something goes wrong while parsin arguments
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args) throws IOException, ParseException {
|
public static void main(String[] args) throws IOException, ParseException {
|
||||||
try {
|
|
||||||
Options options = new Options()
|
Options options = new Options()
|
||||||
.addOption("r", "reverse", false, "Writes down inverted mappings");
|
.addOption("r", "reverse", false, "Writes down inverted mappings");
|
||||||
DefaultParser parser = new DefaultParser();
|
DefaultParser parser = new DefaultParser();
|
||||||
|
@ -73,8 +73,5 @@ public class MappingWriter {
|
||||||
PrintWriter printWriter = new PrintWriter(new FileWriter(targetFile));
|
PrintWriter printWriter = new PrintWriter(new FileWriter(targetFile));
|
||||||
writer.write(mapper, printWriter);
|
writer.write(mapper, printWriter);
|
||||||
printWriter.close();
|
printWriter.close();
|
||||||
} catch(ParseException ex) {
|
|
||||||
ex.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue