Skip to content

Commit 39d484d

Browse files
committed
Re commercialhaskell#6591 Improve online documentation of targets
1 parent d3ce59c commit 39d484d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc/ls_command.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,20 @@ stack ls dependencies [--separator SEP] [--[no-]license] [--filter ITEM]
4040
~~~
4141

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

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

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

0 commit comments

Comments
 (0)