patmood / pocketbase-typegen

Typescript generation for pocketbase records
https://www.npmjs.com/package/pocketbase-typegen
541 stars 20 forks source link

CLI "-e" flag not working #95

Open p-dros opened 10 months ago

p-dros commented 10 months ago

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

patmood commented 8 months ago

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