summaryrefslogtreecommitdiff
path: root/support/texplate/source/main/java/org/islandoftex/texplate/Main.java
blob: 5c27aab23c0dcdeebeb860db917e31d538b2b5c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);
    }

}