Skip to content

Commit 81cbf68

Browse files
committed
Merge branch 'stable'
2 parents bec107d + 39d484d commit 81cbf68

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc/ls_command.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,20 @@ stack ls dependencies [--separator SEP] [--[no-]license] [--filter ITEM]
4141
~~~
4242

4343
`stack ls dependencies` lists all of the packages and versions used for a
44-
project. All project packages are considered by default, but a target can be
45-
specified as an argument. For further information, see the
44+
project. All project packages are considered by default, but one or more targets
45+
can be specified as an argument. For further information, see the
4646
[target syntax](build_command.md#target-syntax) documentation.
4747

48+
!!! note
49+
50+
If the first target is one of `cabal`, `json`, `text` and `tree`, then a
51+
subcommand must be specified.
52+
53+
!!! info
54+
55+
If a specified target is not a project package, then it will not contribute
56+
packages to the command's output.
57+
4858
Subcommands specify the format of the output, as follows:
4959

5060
* `cabal` lists the packages in the format of exact Cabal constraints.

0 commit comments

Comments
 (0)