File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,20 @@ stack ls dependencies [--separator SEP] [--[no-]license] [--filter ITEM]
40
40
~~~
41
41
42
42
` 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
45
45
[ target syntax] ( build_command.md#target-syntax ) documentation.
46
46
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
+
47
57
Subcommands specify the format of the output, as follows:
48
58
49
59
* ` cabal ` lists the packages in the format of exact Cabal constraints.
You can’t perform that action at this time.
0 commit comments