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