Skip to content

Commit

Permalink
docs: fix example for --with option combined with --without (#6318)
Browse files Browse the repository at this point in the history
The current "Managing Dependencies" documentation contains an error at
[Installing group dependencies](https://python-poetry.org/docs/managing-dependencies/#installing-group-dependencies)

Within the warning concerning the combined use of  `--with` and `--without` the parameters were swapped.

- [ ] Added **tests** for changed code.
- [x] Updated **documentation**

Co-authored-by: Philipp Quenzel <[email protected]>
Co-authored-by: finswimmer <[email protected]>
  • Loading branch information
3 people authored Sep 1, 2022
1 parent 62cd1fa commit a613347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/managing-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ poetry install --with docs

{{% warning %}}
When used together, `--without` takes precedence over `--with`. For example, the following command
will only install the dependencies specified in the `test` group.
will only install the dependencies specified in the optional `test` group.

```bash
poetry install --with docs --without test,docs
poetry install --with test,docs --without docs
```
{{% /warning %}}

Expand Down

0 comments on commit a613347

Please sign in to comment.