From d612b583313534cd98473509d7235c405266661a Mon Sep 17 00:00:00 2001 From: mickare <2905154+mickare@users.noreply.github.com> Date: Sun, 16 Apr 2023 14:26:58 +0200 Subject: [PATCH] Cleanup example code --- README.md | 2 +- examples/ExampleCLI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f5aee47..c0064e9 100644 --- a/README.md +++ b/README.md @@ -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 other; public Integer execute2(CommandContext context) throws Exception { diff --git a/examples/ExampleCLI.java b/examples/ExampleCLI.java index f69e50a..90dac39 100644 --- a/examples/ExampleCLI.java +++ b/examples/ExampleCLI.java @@ -49,7 +49,7 @@ public static class MainCommand extends AbstractHelpedCommand @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 other = new ArrayList<>(); public Integer execute2(CommandContext context) throws Exception {