Removed support for optparse-applicative versions older than 0.10.

Debian stable has 0.10.0.
This commit is contained in:
Joey Hess 2015-07-07 23:54:46 -04:00
parent 38215b7463
commit aea694ed3f
4 changed files with 3 additions and 6 deletions

View file

@ -112,15 +112,11 @@ main ps = do
)
where
parseOpts pprefs pinfo args =
#if MIN_VERSION_optparse_applicative(0,10,0)
case execParserPure pprefs pinfo args of
(Options.Applicative.Failure failure) -> do
let (msg, _exit) = renderFailure failure "git-annex test"
error msg
v -> handleParseResult v
#else
handleParseResult $ execParserPure pprefs pinfo args
#endif
ingredients :: [Ingredient]
ingredients =