All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.intocps.maestro.Main Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
package org.intocps.maestro;

import org.intocps.maestro.cli.*;
import picocli.CommandLine;
import picocli.CommandLine.Command;

import java.util.concurrent.Callable;

@Command(name = "maestro", mixinStandardHelpOptions = true, versionProvider = MablCmdVersionProvider.class,
        description = "Mable for co-simulating models", usageHelpAutoWidth = true,
        subcommands = {InterpreterCmd.class, ExportCmd.class, ImportCmd.class, SigverCmd.class},
        headerHeading = "@|bold,underline " +
        "Usage|@:%n%n",
        synopsisHeading = "%n", descriptionHeading = "%n@|bold,underline Description|@:%n%n",
        parameterListHeading = "%n@|bold,underline Parameters|@:%n", optionListHeading = "%n@|bold,underline Options|@:%n")
public class Main implements Callable {

    public static void main(String... args) {
        int exitCode = new CommandLine(new Main()).setCaseInsensitiveEnumValuesAllowed(true).execute(args);
        System.exit(exitCode);
    }

    public static boolean argumentHandler(String... args) {
        return 0 == new CommandLine(new Main()).setCaseInsensitiveEnumValuesAllowed(true).execute(args);
    }

    @Override
    public Integer call() throws Exception {
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy