code: public static String trimOptionName(String word) {
          if (word.startsWith("--"))
              return word.substring(2);
          else if (word.startsWith("-"))
              return word.substring(1);
          else
              return word;
      }
docs: remove leading dashes from word