…lines 1–294 unchanged (294 lines)
295 + "files that got dropped because they were not required. "
296 + "The %outname% placeholder expands to the js output file. "
297 + "If you're using modularization, using %outname% will create "
298 + "a manifest for each module.")
299 private String output_manifest = "";
300
301 @Option(name = "--version",
302 usage = "Prints the compiler version to stderr.")
303 private boolean version = false;
304
305 // Our own option parser to be backwards-compatible.
306 // It needs to be public because of the crazy reflection that args4j does.
307 public static class BooleanOptionHandler extends OptionHandler<Boolean> {
308 private static final Set<String> TRUES =
309 Sets.newHashSet("true", "on", "yes", "1");
…lines 310–363 unchanged (54 lines)
364 }
365 }
366 }
367
368 private final Flags flags = new Flags();
369
370 private static final String configResource =
371 "com.google.javascript.jscomp.parsing.ParserConfig";
372
373 private boolean isConfigValid = false;
374
375 /**
376 * Create a new command-line runner. You should only need to call
377 * the constructor if you're extending this class. Otherwise, the main
…lines 378–416 unchanged (39 lines)
417 parser.parseArgument(processedArgs.toArray(new String[] {}));
418 } catch (CmdLineException e) {
419 err.println(e.getMessage());
420 isConfigValid = false;
421 }
422
423 if (flags.version) {
424 ResourceBundle config = ResourceBundle.getBundle(configResource);
425 err.println(
426 "Closure Compiler (http://code.google.com/p/closure/compiler)\n" +
427 "Version: " + config.getString("compiler.version") + "\n" +
428 "Built on: " + config.getString("compiler.date"));
429 err.flush();
430 }
431
432 if (!isConfigValid || flags.display_help) {
433 isConfigValid = false;
434 parser.printUsage(err);
435 } else {
436 getCommandLineConfig()
…lines 437–610 unchanged (174 lines)