public static void main(String[] args) {
    int exitCode =
        new CommandLine(new JibCli())
            .setParameterExceptionHandler(new ShortErrorMessageHandler())
            .execute(args);
    System.exit(exitCode);
  }
The magic starts here.

@param args the command-line arguments
jib-cli/src/main/java/com/google/cloud/tools/jib/cli/JibCli.java