Function: addArgs()
addArgs<
TSchema>(command,schema,options?):Command
Register Commander arguments for every enabled field on a Zod object schema.
Type Parameters
Section titled “Type Parameters”TSchema
Section titled “TSchema”TSchema extends CliObjectSchema<Readonly<Record<string, unknown>>>
Parameters
Section titled “Parameters”command
Section titled “command”Command
schema
Section titled “schema”TSchema
options?
Section titled “options?”ConfigOptions = {}
Returns
Section titled “Returns”Command