Skip to content

Commit

Permalink
Avoid list in the help
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 1, 2024
1 parent 8ae1ab0 commit 06e0c97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions cabal-install/src/Distribution/Client/CmdTarget.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ targetCommand :: CommandUI (NixStyleFlags ())
targetCommand =
CommandUI
{ commandName = "v2-target"
, commandSynopsis = "List target forms within the project."
, commandSynopsis = "Target disclosure."
, commandUsage = usageAlternatives "v2-target" ["[TARGETS]"]
, commandDescription = Just $ \_ ->
wrapText $
"List targets within a build plan. "
"Reveal the targets of build plan. "
++ "If no [TARGETS] are given 'all' will be used for selecting a build plan.\n\n"
++ "The given target can be;\n"
++ "A [TARGETS] item can be one of these target forms;\n"
++ "- a package target (e.g. [pkg:]package)\n"
++ "- a component target (e.g. [package:][ctype:]component)\n"
++ "- all packages (e.g. all)\n"
Expand All @@ -81,20 +81,20 @@ targetCommand =
++ " "
++ pname
++ " v2-target all\n"
++ " List all targets of the package in the current directory "
++ " Targets of the package in the current directory "
++ "or all packages in the project\n"
++ " "
++ pname
++ " v2-target pkgname\n"
++ " List targets of the package named pkgname in the project\n"
++ " Targets of the package named pkgname in the project\n"
++ " "
++ pname
++ " v2-target ./pkgfoo\n"
++ " List targets of the package in the ./pkgfoo directory\n"
++ " Targets of the package in the ./pkgfoo directory\n"
++ " "
++ pname
++ " v2-target cname\n"
++ " List targets of the component named cname in the project\n"
++ " Targets of the component named cname in the project\n"
++ " "
, commandDefaultFlags = defaultNixStyleFlags ()
, commandOptions = const []
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,14 @@ globalCommand commands =
, addCmd "path"
, par
, startGroup "project building and installing"
, addCmd "target"
, addCmd "build"
, addCmd "install"
, addCmd "haddock"
, addCmd "haddock-project"
, addCmd "clean"
, par
, startGroup "running and testing"
, addCmd "target"
, addCmd "list-bin"
, addCmd "repl"
, addCmd "run"
Expand Down

0 comments on commit 06e0c97

Please sign in to comment.