public static void main()

in messaging/src/main/java/com/google/firebase/quickstart/Messaging.java [235:249]


  public static void main(String[] args) throws IOException {
    if (args.length == 1 && args[0].equals("common-message")) {
      sendCommonMessage();
    } else if (args.length == 1 && args[0].equals("override-message")) {
      sendOverrideMessage();
    } else {
      System.err.println("Invalid command. Please use one of the following commands:");
      // To send a simple notification message that is sent to all platforms using the common
      // fields.
      System.err.println("./gradlew run -Pmessage=common-message");
      // To send a simple notification message to all platforms using the common fields as well as
      // applying platform specific overrides.
      System.err.println("./gradlew run -Pmessage=override-message");
    }
  }