code: public static void main(String[] args) {
  		if (args.length < 1) {
  			CliOptionsParser.printHelpClient();
  			return;
  		}
  
  		switch (args[0]) {
  
  			case MODE_EMBEDDED:
  				// remove mode
  				final String[] modeArgs = Arrays.copyOfRange(args, 1, args.length);
  				final CliOptions options = CliOptionsParser.parseEmbeddedModeClient(modeArgs);
  				if (options.isPrintHelp()) {
  					CliOptionsParser.printHelpEmbeddedModeClient();
  				} else {
  					try {
  						final SqlClient client = new SqlClient(true, options);
  						client.start();
  					} catch (SqlClientException e) {
  						// make space in terminal
  						System.out.println();
  						System.out.println();
  						LOG.error("SQL Client must stop.", e);
  						throw e;
  					} catch (Throwable t) {
  						// make space in terminal
  						System.out.println();
  						System.out.println();
  						LOG.error("SQL Client must stop. Unexpected exception. This is a bug. Please consider filing an issue.", t);
  						throw new SqlClientException("Unexpected exception. This is a bug. Please consider filing an issue.", t);
  					}
  				}
  				break;
  
  			case MODE_GATEWAY:
  				throw new SqlClientException("Gateway mode is not supported yet.");
  
  			default:
  				CliOptionsParser.printHelpClient();
  		}
  	}
docs: --------------------------------------------------------------------------------------------