Skip to content

Commit

Permalink
Fixed 'verbose' command line option.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeaudoinfortin committed Oct 15, 2024
1 parent 7551264 commit 3e9e9d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/dbf/naps/data/BaseOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private void loadFromArgs(String[] args) throws IllegalArgumentException {
}

private void loadVerbose(CommandLine cmd) {
if(cmd.hasOption("threadCount")) {
if(cmd.hasOption("verbose")) {
//Need to get the logback root logger and change it to DEBUG
LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
ch.qos.logback.classic.Logger rootLogger = loggerContext.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public abstract class HeatMapOptions extends DataQueryOptions {
private boolean generateCSV = false;

static {
//The parent class' static initialiser will be called first.
Option dim1 = getOptions().getOption("group1");
Option dim2 = getOptions().getOption("group2");
dim1.setDescription("Data field for the heat map X-axis.");
Expand Down

0 comments on commit 3e9e9d7

Please sign in to comment.