public final void parseCLI(final String[] args)
      throws IOException, JDOMException {
    try {
      parsedArguments = argParser.parseArgs(args);
      System.err.println("CLI options: " + parsedArguments);
      switch (args[0]) {
      case ANNOTATE_PARSER_NAME:
        annotate(System.in, System.out);
        break;
      case SERVER_PARSER_NAME:
        server();
        break;
      case CLIENT_PARSER_NAME:
        client(System.in, System.out);
        break;
      }
    } catch (ArgumentParserException e) {
      argParser.handleError(e);
      System.out.println("Run java -jar target/ixa-pipe-nerc-" + version
          + "-exec.jar (tag|server|client) -help for details");
      System.exit(1);
    }
  }
public final void parseCLI ( final String [ ] args ) throws IOException , JDOMException { try { parsedArguments = argParser . parseArgs ( args ) ; System . err . println ( "CLI options: " + parsedArguments ) ; switch ( args [ 0 ] ) { case ANNOTATE_PARSER_NAME : annotate ( System . in , System . out ) ; break ; case SERVER_PARSER_NAME : server ( ) ; break ; case CLIENT_PARSER_NAME : client ( System . in , System . out ) ; break ; } } catch ( ArgumentParserException e ) { argParser . handleError ( e ) ; System . out . println ( "Run java -jar target/ixa-pipe-nerc-" + version + "-exec.jar (tag|server|client) -help for details" ) ; System . exit ( 1 ) ; } }
Parse the command interface parameters with the argParser.

@param args
the arguments passed through the CLI
@throws IOException
exception if problems with the incoming data
@throws JDOMException
if xml format problems