Update: Just added automatic metavar inference!

The help text now gets smarter labels based on your Zod schema:

  • z.string().email()EMAIL
  • z.coerce.number().int()INTEGER
  • z.enum([…])CHOICE

No manual configuration needed.

https://github.com/dahlia/optique/commit/d4903dfdb88727a488dedb6a73ad8997868246e1

Add metavar inference for Zod schemas · dahlia/optique@d4903df

Implement automatic metavar inference that analyzes Zod schema types to determine appropriate metavar strings for help text. The inference supports basic types (string, number, boolean, date), refi...

1 reply