private static boolean parseBoolean(String value) {
    if ("true".equalsIgnoreCase(value)) {
      return true;
    }
    if ("false".equalsIgnoreCase(value)) {
      return false;
    }
    throw new IllegalArgumentException("Invalid boolean value: " + value);
  }
Parse options passed in via an arguments array. Assumes that array has been split on
white-space and placed into a {@code Queue}. Any unknown arguments will remain in the queue at
the conclusion of this method call. It's up to the caller to deal with these unrecognized
arguments.
hbase-diagnostics/src/main/java/org/apache/hadoop/hbase/PerformanceEvaluation.java