Handy function to get yargs options from TypeBox schema without having to manually call corresponding transformers.
Handlable TypeBox schema types:
TNumber
TString
TBoolean
TArray
TLiteral
TUnion<TLiteral[]>
Schemas that are not supported will still be able to transform, but only pick supported yargs properties from schema.
Any TypeBox schema that could be transformed to yargs options.
Optional
overwrites for yargs options result
applicable yargs options in schema and overwrites
Handy function to get yargs options from TypeBox schema without having to manually call corresponding transformers.
Handlable TypeBox schema types:
TNumber
TString
TBoolean
TArray
TLiteral
TUnion<TLiteral[]>
Schemas that are not supported will still be able to transform, but only pick supported yargs properties from schema.