Function validateOptions

  • Validates the options for a command by checking for required options, conflicts, and dependencies.

    Parameters

    • options: {
          [key: string]:
              | undefined
              | OptionPrimitiveType<(keyof OptionPrimitiveTypeMap)>;
      }
    • config: OptionsConfig

      The option config to be validated.

    Returns void

    Throws an error if the options are invalid.