private static void printUsageAndExit(Options options, int exitCode) {
    HelpFormatter formatter = new HelpFormatter();
    formatter.printHelp("hbase rest start", "", options,
      "\nTo run the REST server as a daemon, execute "
        + "hbase-daemon.sh start|stop rest [-i <port>] [-p <port>] [-ro]\n",
      true);
    System.exit(exitCode);
  }
Main class for launching REST gateway as a servlet hosted by Jetty.
<p>
The following options are supported:
<ul>
<li>-p --port : service port</li>
<li>-ro --readonly : server mode</li>
</ul>
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java