From 58d9b25bdc8b1a84960b4ddd7ea6ff63daf16cc2 Mon Sep 17 00:00:00 2001 From: Sevyls Date: Tue, 20 Jan 2015 00:27:41 +0100 Subject: [PATCH] Add notice to debug markup flag --- .../ims/latex2mobiformulaconv/app/Main.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/latex2mobi-converter/src/main/java/at/ac/tuwien/ims/latex2mobiformulaconv/app/Main.java b/latex2mobi-converter/src/main/java/at/ac/tuwien/ims/latex2mobiformulaconv/app/Main.java index 1ae87b1..8916fd1 100644 --- a/latex2mobi-converter/src/main/java/at/ac/tuwien/ims/latex2mobiformulaconv/app/Main.java +++ b/latex2mobi-converter/src/main/java/at/ac/tuwien/ims/latex2mobiformulaconv/app/Main.java @@ -78,21 +78,18 @@ public class Main { */ public static void main(String[] args) { logger.debug("main() started."); - // Init setupWorkingDirectory(); - logger.debug("Working directory set up to: " + workingDirectory.toAbsolutePath().toString()); - initializeOptions(); - - applicationContext = new ClassPathXmlApplicationContext("/application-context.xml"); - logger.debug("Application context loaded."); - - // Analyse options parseCli(args); logger.debug("CLI arguments parsed."); + logger.debug("Working directory set up to: " + workingDirectory.toAbsolutePath().toString()); + + applicationContext = new ClassPathXmlApplicationContext("/application-context.xml"); + logger.debug("Application context loaded."); + loadConfiguration(); logger.debug("Configuration loaded."); @@ -286,7 +283,7 @@ private static void initializeOptions() { options.addOption("m", "export-markup", false, "export html markup"); options.addOption("t", "title", true, "Document title"); options.addOption("h", "help", false, "show this help"); - options.addOption("d", "debug", false, "show debug output"); + options.addOption("d", "debug", false, "show debug output in html markup"); Option picturesOption = new Option("r", "replace latex formulas with pictures, override html"); picturesOption.setLongOpt("replace-with-images");