Skip to content

Commit 93fa5dc

Browse files
committed
Use subparserInline
1 parent f844879 commit 93fa5dc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

haskell-ci.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ library haskell-ci-internal
158158
, ini ^>=0.4.1
159159
, lattices ^>=2
160160
, network-uri ^>=2.6.1.0
161-
, optparse-applicative ^>=0.16
161+
, optparse-applicative ^>=0.16.1.0
162162
, temporary ^>=1.3
163163
, unordered-containers ^>=0.2.10.0
164164
, zinza ^>=0.2

src/HaskellCI.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ import qualified HaskellCI.Bash.Template as Bash
7777
main :: IO ()
7878
main = do
7979
argv0 <- getArgs
80-
(cmd, opts) <- O.execParser cliParserInfo
80+
(cmd, opts) <- O.customExecParser (O.prefs O.subparserInline) cliParserInfo
8181
case cmd of
8282
CommandListGHC -> do
8383
putStrLn $ "Supported GHC versions:"

src/HaskellCI/Cli.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ parseOptions argv = case res of
143143
(help, _) -> hPutStrLn stderr help >> exitFailure
144144
O.CompletionInvoked _ -> exitFailure -- unexpected
145145
where
146-
res = O.execParserPure (O.prefs mempty) cliParserInfo argv
146+
res = O.execParserPure (O.prefs O.subparserInline) cliParserInfo argv
147147

148148
fromCmd :: Command -> IO FilePath
149149
fromCmd (CommandTravis fp) = return fp

0 commit comments

Comments
 (0)