Skip to content

Commit

Permalink
Update docs/cli.md
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering authored Dec 29, 2023
1 parent 1157e53 commit 2b5f902
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,10 @@ poetry update requests toml
Note that this will not update versions for dependencies outside their
[version constraints]({{< relref "dependency-specification#version-constraints" >}})
specified in the `pyproject.toml` file.
In other terms, `poetry update foo` will be a no-op if the only latest version for `foo` lies outside the constraint specified for `foo` in the `pyproject.toml` file. (More info on constraints can be found in our (Version Requirements)[https://python-poetry.org/docs/dependency-specification/#version-constraints].)
In order for `foo` to be updated, you must update the constraint. You can do this using the `add` command.
In other terms, `poetry update foo` will be a no-op if the version constraint
specified for `foo` is `~2.3` or `2.3` and `2.4` is available.
In order for `foo` to be updated, you must update the constraint, for example `^2.3`.
You can do this using the `add` command.

### Options

Expand Down

0 comments on commit 2b5f902

Please # to comment.