From ecab7b0d17e7100ccb30ad0e006f507394bb0193 Mon Sep 17 00:00:00 2001 From: Michael Rienstra Date: Mon, 27 Feb 2023 16:26:18 -0800 Subject: [PATCH] README: clarify behavior of `pyenv latest` --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6a0a5231..505f842b 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,7 @@ please visit the wiki page about All Pyenv subcommands except `uninstall` automatically resolve full prefixes to the latest version in the corresponding version line. -`pyenv install` picks the latest known version while other subcommands -- the latest installed version. +`pyenv install` picks the latest known version, while other subcommands pick the latest installed version. E.g. to install and then switch to the latest 3.10 release: @@ -425,8 +425,7 @@ pyenv install 3.10 pyenv global 3.10 ``` -You can run [`pyenv latest `](COMMANDS.md#pyenv-latest) to see -what a specific prefix would be resolved to. +You can run [`pyenv latest -k `](COMMANDS.md#pyenv-latest) to see how `pyenv install` would resolve a specific prefix, or [`pyenv latest `](COMMANDS.md#pyenv-latest) to see how other subcommands would resolve it. See the [`pyenv latest` documentation](COMMANDS.md#pyenv-latest) for details.