Skip to content

Config option not allowed before command #331

@edosrecki

Description

@edosrecki

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:

# package.json
{
  "scripts": {
    "kysely": "kysely --config path/to/kysely.config.ts",
    "migrate:up": "pnpm kysely migrate:up",
    "migrate:down":  "pnpm kysely migrate:down"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions