Skip to content

Commit 1e1188f

Browse files
committed
Fix verbosity-parsing bug.
1 parent ec97ec0 commit 1e1188f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cabal-install/Distribution/Client/CmdInstall.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,12 @@ installCommand = CommandUI
195195
(filter ((`notElem` ["target-package-db"])
196196
. optionName) $
197197
installOptions showOrParseArgs)
198-
++ liftOptions get4 set4 (haddockOptions showOrParseArgs)
198+
++ liftOptions get3 set3
199+
-- hide "target-package-db" flag from the
200+
-- install options.
201+
(filter ((`notElem` ["v", "verbose"])
202+
. optionName) $
203+
haddockOptions showOrParseArgs)
199204
++ liftOptions get5 set5 (newInstallOptions showOrParseArgs)
200205
, commandDefaultFlags = (mempty, mempty, mempty, mempty, defaultNewInstallFlags)
201206
}

0 commit comments

Comments
 (0)