uv icon indicating copy to clipboard operation
uv copied to clipboard

Support for shorter --python-version=3.7 argument: --3.7 or --python=3.7

Open 2-5 opened this issue 1 year ago • 1 comments

I often create venvs for multiple Python versions, --python-version=3.7 is just too long, consider (additional) shorter options:

--3.7
--py=3.7
--python=3.7

2-5 avatar Feb 15 '24 20:02 2-5

I don't think we'll support --3.7 as that's ambiguous, but we could add a shorter flag for the version.

zanieb avatar Feb 18 '24 20:02 zanieb

--python seems reasonable, it's also being used by pipenv.

dhruvmanila avatar Feb 19 '24 01:02 dhruvmanila

We'll need to be careful that the flag makes sense with #1396

zanieb avatar Feb 19 '24 02:02 zanieb

Most commands support -p which I think is fine.

charliermarsh avatar Jun 26 '24 01:06 charliermarsh