The help command can now output html for the command-line reference page.

An upcoming change will pipe this to an actual page.

--
MOS_MIGRATED_REVID=125545220
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandUtils.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandUtils.java
index f7bcd1d..722baea8 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandUtils.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandUtils.java
@@ -24,7 +24,6 @@
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashSet;
-import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
@@ -35,7 +34,7 @@
   /**
    * Options classes used as startup options in Blaze core.
    */
-  private static final List<Class<? extends OptionsBase>> DEFAULT_STARTUP_OPTIONS =
+  private static final ImmutableList<Class<? extends OptionsBase>> DEFAULT_STARTUP_OPTIONS =
       ImmutableList.<Class<? extends OptionsBase>>of(
           BlazeServerStartupOptions.class,
           HostJvmStartupOptions.class);
@@ -43,7 +42,7 @@
   /**
    * The set of option-classes that are common to all Blaze commands.
    */
-  private static final Collection<Class<? extends OptionsBase>> COMMON_COMMAND_OPTIONS =
+  private static final ImmutableList<Class<? extends OptionsBase>> COMMON_COMMAND_OPTIONS =
       ImmutableList.of(CommonCommandOptions.class, BlazeCommandEventHandler.Options.class);
 
 
@@ -60,6 +59,10 @@
     return ImmutableList.copyOf(options);
   }
 
+  public static ImmutableList<Class<? extends OptionsBase>> getCommonOptions() {
+    return COMMON_COMMAND_OPTIONS;
+  }
+
   /**
    * Returns the set of all options (including those inherited directly and
    * transitively) for this AbstractCommand's @Command annotation.