Commit 4889213e authored by Jos van den Oever's avatar Jos van den Oever

Add help output on usage.

parent 357acb20
......@@ -31,18 +31,28 @@ public class Main {
return;
}
}
System.out.println(conf.output);
if (conf.output != null) {
System.out.println(conf.input);
if (conf.input != null && conf.output != null) {
odfNormalizer.normalize(conf.input, conf.output);
}
if (conf.input != null && conf.output != null) {
odfNormalizer.normalize(conf.input, conf.output);
return;
}
if (conf.historyFile != null && conf.repoDir != null
&& conf.officeDir != null) {
OdfHistory.create(conf.historyFile, conf.repoDir, conf.officeDir,
odfNormalizer.odfNormalizer);
return;
}
usage();
}
private static void usage() {
final String exe = "odfhistory";
System.err.println("Usage: " + exe + " --testsDir <testsdir>");
System.err.println(" " + exe + " --repoDir <repodir> "
+ "--officeDir <officedir> \\");
System.err.println(" --historyFile <historyfile>");
System.err.println(" " + exe + " <inputfile> <outputfile>");
System.exit(1);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment