public static void main(String[] args) {
        try {
            DefaultTaskFactoryImpl taskFactory = new DefaultTaskFactoryImpl();
            new Main(taskFactory).run(args);
        } catch (CliExecutionException e) {
            String message = getErrorMessage(e);
            LOGGER.error(message);
            System.exit(e.getExitCode());
        }
    }
public static void main(String[] args) {
        try {
            DefaultTaskFactoryImpl taskFactory = new DefaultTaskFactoryImpl();
            new Main(taskFactory).run(args);
        } catch (CliExecutionException e) {
            String message = getErrorMessage(e);
            LOGGER.error(message);
            System.exit(e.getExitCode());
        }
    }
public static void main ( String [ ] args ) { try { DefaultTaskFactoryImpl taskFactory = new DefaultTaskFactoryImpl ( ) ; new Main ( taskFactory ) . run ( args ) ; } catch ( CliExecutionException e ) { String message = getErrorMessage ( e ) ; LOGGER . error ( message ) ; System . exit ( e . getExitCode ( ) ) ; } }
The main method.

@param args
The command line arguments.
@throws IOException
If an error occurs.
The main method .