blob: 618f36fedb696e79d1058843b34ea56cb966e4fd [file] [log] [blame]
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +01001package eu.mulk.aendggner;
2
Matthias Andreas Benkardd9f32a82020-11-22 14:36:59 +01003import java.io.File;
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +01004import java.util.concurrent.Callable;
5import picocli.CommandLine;
6import picocli.CommandLine.Command;
Matthias Andreas Benkardd9f32a82020-11-22 14:36:59 +01007import picocli.CommandLine.Parameters;
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +01008
Matthias Andreas Benkardd9f32a82020-11-22 14:36:59 +01009@Command(
10 name = "ÄndGgner",
11 mixinStandardHelpOptions = true,
12 version = "ÄndGgner 0.1",
13 description = "Displays German amendment acts in a user-friendly, consolidated way.")
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010014public class AendGgner implements Callable<Integer> {
15
Matthias Andreas Benkardd9f32a82020-11-22 14:36:59 +010016 @Parameters(index = "0", description = "The base text to modify.")
17 private File baseFile;
18
19 @Parameters(index = "1", description = "The diff relative to the base text.")
20 private File diffFile;
21
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010022 public static void main(String... args) {
23 int exitCode = new CommandLine(new AendGgner()).execute(args);
24 System.exit(exitCode);
25 }
26
27 @Override
28 public final Integer call() {
29 System.out.println("Hi.");
30 return 0;
31 }
32}