From b4b272b6af9d1f3c51011a407cdc29f64b812865 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 10 Apr 2014 16:59:08 +0200 Subject: Memory optimizations, added Version to web --- pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pdf-as-cli/src/main/java/at') 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(); -- cgit v1.2.3