Commit 5b12ba02 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov

Hide the '--dependency' flag for 'cabal configure'.

See #1603.
parent c0e401b3
......@@ -542,7 +542,7 @@ configureOptions showOrParseArgs =
"All direct dependencies and flags are provided on the command line."
configExactConfiguration
(\v flags -> flags { configExactConfiguration = v })
(boolOpt [] [])
trueArg
,option "" ["benchmarks"]
"dependency checking and compilation for benchmarks listed in the package description file."
......
......@@ -291,7 +291,7 @@ configureExCommand = configureCommand {
commandDefaultFlags = (mempty, defaultConfigExFlags),
commandOptions = \showOrParseArgs ->
liftOptions fst setFst
(filter ((`notElem` ["constraint", "exact-configuration"])
(filter ((`notElem` ["constraint", "dependency", "exact-configuration"])
. optionName) $ configureOptions showOrParseArgs)
++ liftOptions snd setSnd (configureExOptions showOrParseArgs)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment