Skip to content

Commit 4b8abaa

Browse files
authored
Merge pull request #6697 from emilypi/build-depends-docstring
update --build-depends help string
2 parents 7e29625 + 4a19554 commit 4b8abaa

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

cabal-install/Distribution/Client/CmdRepl.hs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ defaultEnvFlags = EnvFlags
125125
envOptions :: ShowOrParseArgs -> [OptionField EnvFlags]
126126
envOptions _ =
127127
[ option ['b'] ["build-depends"]
128-
"Include an additional package in the environment presented to GHCi."
128+
"Include additional packages in the environment presented to GHCi."
129129
envPackages (\p flags -> flags { envPackages = p ++ envPackages flags })
130-
(reqArg "DEPENDENCY" dependencyReadE (fmap prettyShow :: [Dependency] -> [String]))
130+
(reqArg "DEPENDENCIES" dependenciesReadE (fmap prettyShow :: [Dependency] -> [String]))
131131
, option [] ["no-transitive-deps"]
132132
"Don't automatically include transitive dependencies of requested packages."
133133
envIncludeTransitive (\p flags -> flags { envIncludeTransitive = p })
@@ -138,10 +138,10 @@ envOptions _ =
138138
trueArg
139139
]
140140
where
141-
dependencyReadE :: ReadE [Dependency]
142-
dependencyReadE =
141+
dependenciesReadE :: ReadE [Dependency]
142+
dependenciesReadE =
143143
parsecToReadE
144-
("couldn't parse dependency: " ++)
144+
("couldn't parse dependencies: " ++)
145145
(parsecCommaList parsec)
146146

147147
replCommand :: CommandUI ( ConfigFlags, ConfigExFlags, InstallFlags
@@ -621,4 +621,3 @@ explanationSingleComponentLimitation =
621621
"The reason for this limitation is that current versions of ghci do not "
622622
++ "support loading multiple components as source. Load just one component "
623623
++ "and when you make changes to a dependent component then quit and reload."
624-

0 commit comments

Comments
 (0)