From d9f32a8a04152f9028a436be1deabe8f908b5ca4 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 22 Nov 2020 14:36:59 +0100 Subject: Define CLI arguments. Change-Id: I37d6cbb000df63013277fe4628cdb6570d68101a --- src/main/java/eu/mulk/aendggner/AendGgner.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/eu/mulk/aendggner/AendGgner.java b/src/main/java/eu/mulk/aendggner/AendGgner.java index fa79ac4..618f36f 100644 --- a/src/main/java/eu/mulk/aendggner/AendGgner.java +++ b/src/main/java/eu/mulk/aendggner/AendGgner.java @@ -1,12 +1,24 @@ package eu.mulk.aendggner; +import java.io.File; import java.util.concurrent.Callable; import picocli.CommandLine; import picocli.CommandLine.Command; +import picocli.CommandLine.Parameters; -@Command +@Command( + name = "ÄndGgner", + mixinStandardHelpOptions = true, + version = "ÄndGgner 0.1", + description = "Displays German amendment acts in a user-friendly, consolidated way.") public class AendGgner implements Callable { + @Parameters(index = "0", description = "The base text to modify.") + private File baseFile; + + @Parameters(index = "1", description = "The diff relative to the base text.") + private File diffFile; + public static void main(String... args) { int exitCode = new CommandLine(new AendGgner()).execute(args); System.exit(exitCode); -- cgit v1.2.1