Skip to content

Recognize user intent when using --python 3.13 #272

@sharkdp

Description

@sharkdp

For some reason I do this wrong all the time. I run ty check --python 3.13 and press enter before I realize that it should be --python-version, not --python. It would be nice to detect this (directory "3.13" does not exist and it successfully parses as a python version) and to show a nice error message ("did you mean --python-version 3.13")?

▶ ty check --python 3.13  # oops
ty failed
  Cause: Invalid search path settings
  Cause: Failed to discover the site-packages directory: Invalid `--python` argument: `/home/shark/ecosystem/ami-notifications-api/3.13` could not be canonicalized

Metadata

Metadata

Assignees

Labels

cliRelated to the command-line interfaceconfigurationRelated to settings and configurationwishNot on the current roadmap; maybe in the future

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions