code: public static SettingsErrors get(Map<String, String[]> clArgs)
      {
          String[] params = clArgs.remove("-errors");
          if (params == null)
              return new SettingsErrors(new Options());
  
          GroupedOptions options = GroupedOptions.select(params, new Options());
          if (options == null)
          {
              printHelp();
              System.out.println("Invalid -errors options provided, see output for valid options");
              System.exit(1);
          }
          return new SettingsErrors((Options) options);
      }
docs: CLI Utility Methods