Skip to content

Commit

Permalink
WIP to use the default option as in catmandu #333
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jun 6, 2024
1 parent c403afa commit 6b01722
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ public void apply(final Metafix metafix, final Record record, final List<String>
final String defaultValue = map.get(Maps.DEFAULT_MAP_KEY); // TODO: Catmandu uses 'default'
final boolean delete = getBoolean(options, "delete");
final boolean printUnknown = getBoolean(options, "print_unknown");
final String defaultOption = options.get("default");

final Consumer<Consumer<String>> consumer = c -> record.transform(params.get(0), oldValue -> {
final String newValue = map.get(oldValue);
Expand Down

0 comments on commit 6b01722

Please sign in to comment.