Observed behavior:
kysely --config path/to/kysely.config.ts migrate:up
# ERROR Unknown command path/to/kysely.config.ts
kysely --config=path/to/kysely.config.ts migrate:up
# Ignores config flag and uses default kysely.config.ts
Expected behavior
kysely --config path/to/kysely.config.ts migrate:up
kysely --config=path/to/kysely.config.ts migrate:up
# Both should use specified config path
Justification
Want to be able to do so:
Observed behavior:
kysely --config path/to/kysely.config.ts migrate:up # ERROR Unknown command path/to/kysely.config.tskysely --config=path/to/kysely.config.ts migrate:up # Ignores config flag and uses default kysely.config.tsExpected behavior
kysely --config path/to/kysely.config.ts migrate:up kysely --config=path/to/kysely.config.ts migrate:up # Both should use specified config pathJustification
Want to be able to do so:
# package.json { "scripts": { "kysely": "kysely --config path/to/kysely.config.ts", "migrate:up": "pnpm kysely migrate:up", "migrate:down": "pnpm kysely migrate:down" } }