Skip to content

dbc --version conflicts with dbc install --version #30

Closed

Description

@amoeba
$ dbc install --help
v0.0.1-pre3
Usage: dbc install [--version VERSION] [--level LEVEL] DRIVER

Positional arguments:
  DRIVER                 Driver to install

Options:
  --version VERSION, -v VERSION
                         Version to install
  --level LEVEL, -l LEVEL
                         Config level to install to (user, system)
  --help, -h             display this help and exit

~/src/columnar-tech/dbc docs/update-website*
$ dbc install --version "0.1.0" "mysql"
v0.0.1-pre3

Activity

  1. added this to the 0.0.1 milestone on Sep 13, 2025
  2. amoeba commented on Sep 13, 2025

    @amoeba
    MemberAuthor

    I think you just can't have two --version flags and still use automatic parsing. Since I don't think we want to remove the top level dbc --version flag, we could rename the dbc install --version flag to something like -c/--constraint.

    Even better, I think we could let the user specify the version constraint in the install command directly and entirely remove the flag. Popular package management tools like npm and cargo do this (e.g., npm add "vite<8").

  3. zeroshade commented on Sep 17, 2025

    @zeroshade
    Member

    Should we update the argument to parse the driver and find the constraint (i.e. dbc install "flightsql>1.2") or keep it as a separate argument like -c/--constraint?

  4. amoeba commented on Sep 17, 2025

    @amoeba
    MemberAuthor

    The fastest thing is to just rename the flag but I really like the simplicity of parsing the constraint from the name so I'd prefer that route.

  5. added a commit that references this issue on Sep 18, 2025
    67eb389
  6. added a commit that references this issue on Apr 17, 2026
    cb02811
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions