Skip to content

Commit

Permalink
only add dependent commands if they are required
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Dec 18, 2024
1 parent b69989f commit 3e6cfc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void add(Class<? extends MATSimAppCommand> command, String... args) {

// Add dependent classes
for (Dependency depends : spec.dependsOn()) {
if (!this.args.containsKey(depends.value()))
if (depends.required() && !this.args.containsKey(depends.value()))
add(depends.value());
}
}
Expand Down

0 comments on commit 3e6cfc7

Please sign in to comment.