pocketbase-typegen icon indicating copy to clipboard operation
pocketbase-typegen copied to clipboard

CLI "-e" flag not working

Open p-dros opened this issue 1 year ago • 1 comments

Describe the bug Pocketbase Typegen CLI is not correctly parsing -e flag.

Not Working:

pnpm dlx pocketbase-typegen -e ./.env.local --out ./src/types/pocketbase.ts

(...)

Missing schema path. Check options: pocketbase-typegen --help

Working

pnpm dlx pocketbase-typegen --env ./.env.local --out ./src/types/pocketbase.ts

(...)

Created typescript definitions at ./src/types/pocketbase.ts

Versions pocketbase-typegen version: v1.2.1

p-dros avatar Jan 21 '24 22:01 p-dros

Thanks for flagging. Looks like this probably conflicts with the --email option. I'll remove the short hand option and only allow --env

patmood avatar Feb 27 '24 09:02 patmood