From 3486928986a334d73e729c7a8dd57963da726eaf Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Wed, 24 May 2023 08:16:43 -0400 Subject: [PATCH] Add a help section on listing targets. --- doc/build_command.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/build_command.md b/doc/build_command.md index b8d465f063..bb59f1f1e3 100644 --- a/doc/build_command.md +++ b/doc/build_command.md @@ -144,8 +144,14 @@ supported syntaxes for targets are: `stack build` with no targets specified will build all local packages. -Command `stack ide targets` to get a list of the available targets in your -project. +## Listing targets + +`stack ide targets` lists every available target in your project. + +With one or more component type flags this listing can be restricted. + +`stack ide targets --exes` lists only exe targets. +`stack ide targets --tests --benchmarks` lists test and benchmark targets. ## Controlling what gets built