mirror of https://github.com/astral-sh/uv
Fix list rendering in `venv --help` output (#1459)
This commit is contained in:
parent
63987e4f8f
commit
e913167849
|
|
@ -632,15 +632,15 @@ struct VenvArgs {
|
||||||
/// The Python interpreter to use for the virtual environment.
|
/// The Python interpreter to use for the virtual environment.
|
||||||
///
|
///
|
||||||
/// Supported formats:
|
/// Supported formats:
|
||||||
/// * `-p 3.10` searches for an installed Python 3.10 (`py --list-paths` on Windows, `python3.10` on Linux/Mac).
|
/// - `3.10` searches for an installed Python 3.10 (`py --list-paths` on Windows, `python3.10` on Linux/Mac).
|
||||||
/// Specifying a patch version is not supported.
|
/// Specifying a patch version is not supported.
|
||||||
/// * `-p python3.10` or `-p python.exe` looks for a binary in `PATH`.
|
/// - `python3.10` or `python.exe` looks for a binary in `PATH`.
|
||||||
/// * `-p /home/ferris/.local/bin/python3.10` uses this exact Python.
|
/// - `/home/ferris/.local/bin/python3.10` uses this exact Python.
|
||||||
///
|
///
|
||||||
/// Note that this is different from `--python-version` in `pip compile`, which takes `3.10` or `3.10.13` and
|
/// Note that this is different from `--python-version` in `pip compile`, which takes `3.10` or `3.10.13` and
|
||||||
/// doesn't look for a Python interpreter on disk.
|
/// doesn't look for a Python interpreter on disk.
|
||||||
// Short `-p` to match `virtualenv`
|
// Short `-p` to match `virtualenv`
|
||||||
#[clap(short, long)]
|
#[clap(short, long, verbatim_doc_comment)]
|
||||||
python: Option<String>,
|
python: Option<String>,
|
||||||
|
|
||||||
/// Install seed packages (`pip`, `setuptools`, and `wheel`) into the virtual environment.
|
/// Install seed packages (`pip`, `setuptools`, and `wheel`) into the virtual environment.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue