java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java
branchv_0
changeset 69 0befec5034c2
parent 64 fcc499518dc7
child 70 02c8eaa425e8
--- a/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java	Thu Dec 26 11:58:14 2013 +0100
+++ b/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java	Thu Dec 26 21:18:54 2013 +0100
@@ -97,8 +97,10 @@
 		/** Show info */
 		if (!options.getShowInfo().isEmpty()) {
 			PrintStream infoOut = mode == MODE.JUST_SHOW_INFO ? System.out : System.err;
-			InfoLister infoLister = new InfoLister(infoOut, this);
-			infoLister.showInfo(options);
+			InfoLister infoLister = new InfoLister(infoOut, this, options);
+			for (InfoLister.InfoType infoType : options.getShowInfo()) {
+				infoType.showInfo(infoLister);
+			}
 		}
 
 		switch (mode) {