Skip to content

Commit

Permalink
Fix crop cli option to not expect a boolean as extra parameter but se…
Browse files Browse the repository at this point in the history
…tting it internally if option is present
  • Loading branch information
MediaMarco committed May 23, 2024
1 parent 8515202 commit 45cd195
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/src/main/java/de/otto/jlineup/cli/JLineup.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ public CommandLine.Model.CommandSpec transform(CommandLine.Model.CommandSpec com
commandSpec.addOption(CommandLine.Model.OptionSpec.builder("--" + GlobalOption.JLINEUP_CROP_LAST_SCREENSHOT.kebabCaseNameWithoutJLineupPrefix())
.order(201).description("If this is set, JLineup will crop the last screenshot when scrolling to match the previous one.")
.parameterConsumer((stack, argSpec, commandSpec1) -> {
String value = stack.pop();
GlobalOptions.setOption(GlobalOption.JLINEUP_CROP_LAST_SCREENSHOT, value);
GlobalOptions.setOption(GlobalOption.JLINEUP_CROP_LAST_SCREENSHOT, "true");
})
.build());

Expand Down

0 comments on commit 45cd195

Please sign in to comment.