Skip to content

Commit

Permalink
doc: add warning for --with and --without usage
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Mar 23, 2022
1 parent 3964b4c commit 399c650
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/managing-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ You can also opt in [optional groups]({{< relref "#optional-groups" >}}) by usin
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.

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

Finally, in some case you might want to install **only specific groups** of dependencies
without installing the default set of dependencies. For that purpose, you can use
the `--only` option.
Expand Down

0 comments on commit 399c650

Please sign in to comment.