aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-11-22 14:36:59 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-11-22 14:42:35 +0100
commitd9f32a8a04152f9028a436be1deabe8f908b5ca4 (patch)
treee4bccf342381e0f01f5f77a9af408faa08bbebfa /src/main/java/eu
parent31a2c505ff035c1cdcefdef17d900acb76919695 (diff)
Define CLI arguments.
Change-Id: I37d6cbb000df63013277fe4628cdb6570d68101a
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/mulk/aendggner/AendGgner.java14
1 files changed, 13 insertions, 1 deletions
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<Integer> {
+ @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);