Skip to content

Commit

Permalink
Cleanup example code
Browse files Browse the repository at this point in the history
  • Loading branch information
mickare committed Apr 16, 2023
1 parent c7931ff commit d612b58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public class Main {
@Option(names = {"--day"}, desc = "Day of the week")
private final DayOfWeek day = DayOfWeek.MONDAY;

@Argument(name = "other", symbol = "N", nargs = -0, desc = "Additional args")
@Argument(name = "other", symbol = "N", nargs = 0, desc = "Additional args")
private List<String> other;

public Integer execute2(CommandContext<Context> context) throws Exception {
Expand Down
2 changes: 1 addition & 1 deletion examples/ExampleCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static class MainCommand extends AbstractHelpedCommand<Context, Integer>
@Option(names = {"--day"}, desc = "Day of the week")
private DayOfWeek day = DayOfWeek.MONDAY;

@Argument(name = "other", symbol = "N", nargs = -0, desc = "Additional args")
@Argument(name = "other", symbol = "N", nargs = 0, desc = "Additional args")
private List<String> other = new ArrayList<>();

public Integer execute2(CommandContext<Context> context) throws Exception {
Expand Down

0 comments on commit d612b58

Please sign in to comment.