Skip to content

Commit

Permalink
Update description of --why flag for poetry show (#8817)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentincalomme committed Dec 27, 2023
1 parent 0272abb commit f6002e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ required by
### Options

* `--without`: The dependency groups to ignore.
* `--why`: When showing the full list, or a `--tree` for a single package, display why a package is included.
* `--why`: When showing the full list, or a `--tree` for a single package, display whether they are a direct dependency or required by other packages.
* `--with`: The optional dependency groups to include.
* `--only`: The only dependency groups to include.
* `--no-dev`: Do not list the dev dependencies. (**Deprecated**, use `--without dev` or `--only main` instead)
Expand Down
5 changes: 3 additions & 2 deletions src/poetry/console/commands/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ class ShowCommand(GroupCommand, EnvCommand):
option(
"why",
None,
"When showing the full list, or a <info>--tree</info> for a single"
" package, also display why it's included.",
"When showing the full list, or a <info>--tree</info> for a single package,"
" display whether they are a direct dependency or required by other"
" packages",
),
option("latest", "l", "Show the latest version."),
option(
Expand Down

0 comments on commit f6002e2

Please sign in to comment.