code: protected void checkOption(CliOptionContainer optionContainer) {
  
      CliOption option = optionContainer.getOption();
      String mode = option.mode();
      if (this.cliState.getMode(mode) == null) {
        handleUndefinedMode(optionContainer);
      }
  
      checkOptionName(option.name(), optionContainer);
      for (String alias : option.aliases()) {
        checkOptionName(alias, optionContainer);
      }
    }
docs: This method checks a {@link CliOption} for correctness.
  
  @param optionContainer is the {@link CliOptionContainer}.