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]
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+
4757Subcommands specify the format of the output, as follows:
4858
4959* ` cabal ` lists the packages in the format of exact Cabal constraints.
You can’t perform that action at this time.
0 commit comments