Skip to content

Commit

Permalink
Merge pull request #6592 from commercialhaskell/fix6591
Browse files Browse the repository at this point in the history
Fix #6591 Improve in-app documentation
  • Loading branch information
mpilgrem committed May 23, 2024
2 parents 81cbf68 + b55682a commit 49fe9c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/Stack/Options/BuildParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ targetsParser =
many (textArgument
( metavar "TARGET"
<> completer targetCompleter
<> help "If none specified, use all project packages. See \
<> help "Can be specified multiple times. If none specified, use all \
\project packages. See \
\https://docs.haskellstack.org/en/stable/build_command/#target-syntax \
\for details."
))
Expand Down
15 changes: 9 additions & 6 deletions src/Stack/Options/LsParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import Stack.Prelude
-- | Parse command line arguments for Stack's @ls@ command.
lsOptsParser :: OA.Parser LsCmdOpts
lsOptsParser = LsCmdOpts
<$> OA.hsubparser
( lsSnapCmd
<> lsGlobalsCmd
<> lsDepsCmd
<> lsStylesCmd
<$> OA.hsubparser
( lsSnapCmd
<> lsGlobalsCmd
<> lsDepsCmd
<> lsStylesCmd
<> lsToolsCmd
)

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

lsStylesCmd :: OA.Mod OA.CommandFields LsCmds
Expand Down

0 comments on commit 49fe9c8

Please sign in to comment.