diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-04-10 16:59:08 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-04-10 16:59:08 +0200 |
commit | b4b272b6af9d1f3c51011a407cdc29f64b812865 (patch) | |
tree | 284dcfd429c6586e97f96827afaa5e93deabd01b /pdf-as-cli/src/main/java | |
parent | f891dca529c9dc199114ae4f0857d28812315b11 (diff) | |
download | pdf-as-4-b4b272b6af9d1f3c51011a407cdc29f64b812865.tar.gz pdf-as-4-b4b272b6af9d1f3c51011a407cdc29f64b812865.tar.bz2 pdf-as-4-b4b272b6af9d1f3c51011a407cdc29f64b812865.zip |
Memory optimizations, added Version to web
Diffstat (limited to 'pdf-as-cli/src/main/java')
-rw-r--r-- | pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java index 34e384ad..dcd94b77 100644 --- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java +++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java @@ -28,6 +28,7 @@ import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Iterator; import java.util.List; +import java.util.Scanner; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; @@ -183,6 +184,8 @@ public class Main { public static void main(String[] args) { // create the command line parser + + CommandLineParser parser = new GnuParser(); ModeOfOperation mode = ModeOfOperation.INVALID; try { @@ -218,7 +221,6 @@ public class Main { } else if (mode == ModeOfOperation.VERIFY) { perform_verify(cli); } - } catch (ParseException e) { System.err.println("Invalid arguments: " + e.getMessage()); usage(); |