Search in sources :

Example 1 with WrongOptionsException

use of cz.cuni.mff.d3s.trupple.main.exceptions.WrongOptionsException in project TrufflePascal by Aspect26.

the class CompilerMain method parseArguments.

private static Settings parseArguments(String[] args) throws CompilerException {
    Settings settings = new Settings();
    CmdLineParser argumentsParser = new CmdLineParser(settings);
    try {
        argumentsParser.parseArgument(args);
        return settings;
    } catch (CmdLineException e) {
        throw new WrongOptionsException(e, argumentsParser);
    }
}
Also used : WrongOptionsException(cz.cuni.mff.d3s.trupple.main.exceptions.WrongOptionsException) CmdLineParser(org.kohsuke.args4j.CmdLineParser) Settings(cz.cuni.mff.d3s.trupple.main.settings.Settings) CmdLineException(org.kohsuke.args4j.CmdLineException)

Aggregations

WrongOptionsException (cz.cuni.mff.d3s.trupple.main.exceptions.WrongOptionsException)1 Settings (cz.cuni.mff.d3s.trupple.main.settings.Settings)1 CmdLineException (org.kohsuke.args4j.CmdLineException)1 CmdLineParser (org.kohsuke.args4j.CmdLineParser)1