code: public static SettingsCommandUser build(String[] params)
      {
          GroupedOptions options = GroupedOptions.select(params,
                  new Options(new Uncertainty()),
                  new Options(new Duration()),
                  new Options(new Count()));
          if (options == null)
          {
              printHelp();
              System.out.println("Invalid USER options provided, see output for valid options");
              System.exit(1);
          }
          return new SettingsCommandUser((Options) options);
      }
docs: CLI utility methods