Function getOptions

  • Transform a whole TypeBox TObject schema to multiple yargs options. Key of the object will be the name of the parameter, and the value will be the yargs option schema.

    The value will be transformed by getOption function.

    Type Parameters

    Parameters

    • schema: Schema

      TypeBox TObject schema to transform as multiple yargs options, as key be the name and the value be the schema

    Returns Record<keyof Static<Schema>, Options>

    transformed object of yargs options