Commit cdc0e284 by Tobias

fixed verbose mode in CLI

1 parent f85b3b28
......@@ -18,7 +18,7 @@ public class CliParser {
CommandLineParser parser = new DefaultParser();
Options options = new Options();
options.addOption("v", "verbose", true, "show more information");
options.addOption("v", "verbose", false, "show more information");
options.addOption("e", "embed", true, "embed data into image");
options.addOption("x", "extract", true, "extract data from image");
options.addOption("m", "message", true, "message to embed");
......@@ -48,10 +48,10 @@ public class CliParser {
CommandLine line = parser.parse(options, args);
Cli cli = new Cli();
if (line.hasOption("v")) { //TODO: still doesn't seem to work
ch.qos.logback.classic.Logger rootLogger = (ch.qos.logback.classic.Logger) LoggerFactory
.getLogger(Logger.ROOT_LOGGER_NAME);
rootLogger.setLevel(Level.DEBUG);
if (line.hasOption("v")) {
ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) LoggerFactory
.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
root.setLevel(Level.DEBUG);
}
if (line.hasOption("e")) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!