Skip to content

Commit

Permalink
Fix a bug where setting exporter.years_of_history via the command lin…
Browse files Browse the repository at this point in the history
…e would be ignored
  • Loading branch information
hadleynet committed May 17, 2024
1 parent 6787a03 commit d10d07e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ public static void main(String[] args) throws Exception {
}

Config.set(configSetting, value);
// Special case for years of history which defaults to 0 in the
// constructor which is called before options are parsed
if (configSetting.equals("exporter.years_of_history")) {
exportOptions.yearsOfHistory = Integer.parseInt(value);
}
} else if (options.state == null) {
options.state = currArg;
} else {
Expand Down

0 comments on commit d10d07e

Please sign in to comment.