diff options
author | Norbert Preining <norbert@preining.info> | 2020-01-15 03:00:56 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-01-15 03:00:56 +0000 |
commit | 3bd863734612dc2fe9c5c7c1405358ffb1228afb (patch) | |
tree | 9f7d421c227b998debe92dac90f4cf8634a8f94f /support/texplate/source/main/java/org/islandoftex/texplate/Main.java | |
parent | b3225c4301e7724de481f410444fef5463799b9d (diff) |
CTAN sync 202001150300
Diffstat (limited to 'support/texplate/source/main/java/org/islandoftex/texplate/Main.java')
-rw-r--r-- | support/texplate/source/main/java/org/islandoftex/texplate/Main.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/support/texplate/source/main/java/org/islandoftex/texplate/Main.java b/support/texplate/source/main/java/org/islandoftex/texplate/Main.java new file mode 100644 index 0000000000..5c27aab23c --- /dev/null +++ b/support/texplate/source/main/java/org/islandoftex/texplate/Main.java @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: BSD-3-Clause +package org.islandoftex.texplate; + +import org.islandoftex.texplate.model.TemplateProcessing; +import org.islandoftex.texplate.util.MessageUtils; +import picocli.CommandLine; + +/** + * The main class. The application logic is enclosed in the template processing + * class. + * + * @version 1.0 + * @since 1.0 + */ +public class Main { + + /** + * Main method. Note that it simply passes the control to the template + * processing class. + * + * @param args The command line arguments. + */ + public static void main(String[] args) { + + // draw the application logo in the + // terminal (please have fixed fonts + // in your terminal for a nice display) + MessageUtils.drawLogo(); + + // calls the command line processing method + // and performs the actual application logic + int exitCode = new CommandLine(new TemplateProcessing()).execute(args); + System.exit(exitCode); + } + +} |