public static void printHelp(PrintStream out){
  checkNotNull(out);
  out.println("The set of registered options are:");
  Set<Class<? extends PipelineOptions>> sortedOptions=new TreeSet<>(ClassNameComparator.INSTANCE);
  sortedOptions.addAll(REGISTERED_OPTIONS);
  for (  Class<? extends PipelineOptions> kls : sortedOptions) {
    out.format("  %s%n",kls.getName());
  }
  out.format("%nUse --help=<OptionsName> for detailed help. For example:%n" + "  --help=DataflowPipelineOptions <short names valid for registered options>%n" + "  --help=org.apache.beam.sdk.options.DataflowPipelineOptions%n");
}

public static void printHelp ( PrintStream out ) { checkNotNull ( out ) ; out . println ( "The set of registered options are:" ) ; Set < Class < ? extends PipelineOptions > > sortedOptions = new TreeSet < > ( ClassNameComparator . INSTANCE ) ; sortedOptions . addAll ( REGISTERED_OPTIONS ) ; for ( Class < ? extends PipelineOptions > kls : sortedOptions ) { out . format ( "  %s%n" , kls . getName ( ) ) ; } out . format ( "%nUse --help=<OptionsName> for detailed help. For example:%n" + "  --help=DataflowPipelineOptions <short names valid for registered options>%n" + "  --help=org.apache.beam.sdk.options.DataflowPipelineOptions%n" ) ; }
outputs the set of registered options with the pipelineoptionsfactory with a description for each one if available to the output stream . this output is pretty printed and meant to be human readable . this method will attempt to format its output to be compatible with a terminal window .
