+ for (int x = 0; x < args.length; x++) {
+ if (args[x].equals("--try_harder")) {
+ hints = new Hashtable<DecodeHintType, Object>(3);
+ hints.put(DecodeHintType.TRY_HARDER, Boolean.TRUE);
+ } else if (args[x].startsWith("--")) {
+ System.out.println("Unknown command line option " + args[x]);
+ return;
+ }
+ }
+ for (int x = 0; x < args.length; x++) {
+ if (!args[x].startsWith("--")) {
+ decodeOneArgument(args[x]);
+ }
+ }
+ }
+
+ private static void decodeOneArgument(String argument) throws Exception {
+ File inputFile = new File(argument);