Skip to content

Commit ed75265

Browse files
committed
Avoid list in the help
1 parent bc7a7a4 commit ed75265

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cabal-install/src/Distribution/Client/CmdTarget.hs

+7-7
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ targetCommand :: CommandUI (NixStyleFlags ())
5656
targetCommand =
5757
CommandUI
5858
{ commandName = "v2-target"
59-
, commandSynopsis = "List target forms within the project."
59+
, commandSynopsis = "Target disclosure."
6060
, commandUsage = usageAlternatives "v2-target" ["[TARGETS]"]
6161
, commandDescription = Just $ \_ ->
6262
wrapText $
63-
"List targets within a build plan. "
63+
"Reveal the targets of build plan. "
6464
++ "If no [TARGETS] are given 'all' will be used for selecting a build plan.\n\n"
65-
++ "The given target can be;\n"
65+
++ "A [TARGETS] item can be one of these target forms;\n"
6666
++ "- a package target (e.g. [pkg:]package)\n"
6767
++ "- a component target (e.g. [package:][ctype:]component)\n"
6868
++ "- all packages (e.g. all)\n"
@@ -81,20 +81,20 @@ targetCommand =
8181
++ " "
8282
++ pname
8383
++ " v2-target all\n"
84-
++ " List all targets of the package in the current directory "
84+
++ " Targets of the package in the current directory "
8585
++ "or all packages in the project\n"
8686
++ " "
8787
++ pname
8888
++ " v2-target pkgname\n"
89-
++ " List targets of the package named pkgname in the project\n"
89+
++ " Targets of the package named pkgname in the project\n"
9090
++ " "
9191
++ pname
9292
++ " v2-target ./pkgfoo\n"
93-
++ " List targets of the package in the ./pkgfoo directory\n"
93+
++ " Targets of the package in the ./pkgfoo directory\n"
9494
++ " "
9595
++ pname
9696
++ " v2-target cname\n"
97-
++ " List targets of the component named cname in the project\n"
97+
++ " Targets of the component named cname in the project\n"
9898
++ " "
9999
, commandDefaultFlags = defaultNixStyleFlags ()
100100
, commandOptions = const []

cabal-install/src/Distribution/Client/Setup.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,14 @@ globalCommand commands =
376376
, addCmd "path"
377377
, par
378378
, startGroup "project building and installing"
379+
, addCmd "target"
379380
, addCmd "build"
380381
, addCmd "install"
381382
, addCmd "haddock"
382383
, addCmd "haddock-project"
383384
, addCmd "clean"
384385
, par
385386
, startGroup "running and testing"
386-
, addCmd "target"
387387
, addCmd "list-bin"
388388
, addCmd "repl"
389389
, addCmd "run"

0 commit comments

Comments
 (0)