Skip to content

Commit b55682a

Browse files
committed
Fix #6591 Improve in-app documentation
1 parent 81cbf68 commit b55682a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/Stack/Options/BuildParser.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ targetsParser =
121121
many (textArgument
122122
( metavar "TARGET"
123123
<> completer targetCompleter
124-
<> help "If none specified, use all project packages. See \
124+
<> help "Can be specified multiple times. If none specified, use all \
125+
\project packages. See \
125126
\https://docs.haskellstack.org/en/stable/build_command/#target-syntax \
126127
\for details."
127128
))

src/Stack/Options/LsParser.hs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ import Stack.Prelude
2424
-- | Parse command line arguments for Stack's @ls@ command.
2525
lsOptsParser :: OA.Parser LsCmdOpts
2626
lsOptsParser = LsCmdOpts
27-
<$> OA.hsubparser
28-
( lsSnapCmd
29-
<> lsGlobalsCmd
30-
<> lsDepsCmd
31-
<> lsStylesCmd
27+
<$> OA.hsubparser
28+
( lsSnapCmd
29+
<> lsGlobalsCmd
30+
<> lsDepsCmd
31+
<> lsStylesCmd
3232
<> lsToolsCmd
3333
)
3434

@@ -47,7 +47,10 @@ lsGlobalsCmd = OA.command "globals" $
4747
lsDepsCmd :: OA.Mod OA.CommandFields LsCmds
4848
lsDepsCmd = OA.command "dependencies" $
4949
OA.info lsDepOptsParser $
50-
OA.progDesc "View the dependencies."
50+
OA.progDesc
51+
"View the packages and versions used for a project. Use a command if \
52+
\the first target specified has the name of a command. Targets other \
53+
\than project packages are ignored."
5154
<> OA.footer globalFooter
5255

5356
lsStylesCmd :: OA.Mod OA.CommandFields LsCmds

0 commit comments

Comments
 (0)