Function: parseArgs()
parseArgs<
TSchema>(command,schema,options?):ReturnType<TSchema["parse"]>
Merge CLI values over layered config, then validate and default through Zod.
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”ReturnType<TSchema["parse"]>