Skip to content

Commit

Permalink
doc: clarify--why command
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolsson committed May 21, 2022
1 parent a80f985 commit efbb5ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ required by
### Options

* `--without`: The dependency groups to ignore.
* `--why`: Include reverse dependencies where applicable.
* `--why`: When showing the full list, or a `--tree` for a single package, display why a package is included.
* `--with`: The optional dependency groups to include.
* `--only`: The only dependency groups to include.
* `--default`: Only include the main dependencies. (**Deprecated**)
Expand All @@ -457,6 +457,7 @@ required by
When `--only` is specified, `--with` and `--without` options are ignored.
{{% /note %}}


## build

The `build` command builds the source and wheels archives.
Expand Down
3 changes: 2 additions & 1 deletion src/poetry/console/commands/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ class ShowCommand(GroupCommand):
option(
"why",
None,
"When listing the tree for a single package, start from parents.",
"When showing the full list, or a <info>--tree</info> for a single package,"
" also display why it's included.",
),
option("latest", "l", "Show the latest version."),
option(
Expand Down

0 comments on commit efbb5ce

Please sign in to comment.