Skip to content

Commit 8b5da14

Browse files
committed
foo
1 parent 93577e7 commit 8b5da14

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/HaskellCI.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ main = do
8888
CommandDumpConfig -> do
8989
putStr $ unlines $ runDG configGrammar
9090

91-
CommandDiffConfig _Nothing __Nothing -> do
91+
CommandDiffConfig -> do
9292
let oldConfig = emptyConfig -- default
9393
newConfig' <- findConfigFile (optConfig opts)
9494
let newConfig = optConfigMorphism opts newConfig'

src/HaskellCI/Cli.hs

+3-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ data Command
2626
| CommandRegenerate
2727
| CommandListGHC
2828
| CommandDumpConfig
29-
| CommandDiffConfig (Maybe FilePath) (Maybe FilePath)
29+
| CommandDiffConfig
3030
| CommandVersionInfo
3131
deriving Show
3232

@@ -136,7 +136,7 @@ cliParserInfo = O.info ((,) <$> cmdP <*> optionsP O.<**> versionP O.<**> O.helpe
136136
, O.command "github" $ O.info githubP $ O.progDesc "Generate GitHub Actions config"
137137
, O.command "list-ghc" $ O.info (pure CommandListGHC) $ O.progDesc "List known GHC versions"
138138
, O.command "dump-config" $ O.info (pure CommandDumpConfig) $ O.progDesc "Dump cabal.haskell-ci config with default values"
139-
, O.command "diff-config" $ O.info diffP $ O.progDesc "Diff between configuration files"
139+
, O.command "diff-config" $ O.info diffP $ O.progDesc "Diff between default and current configuration"
140140
, O.command "version-info" $ O.info (pure CommandVersionInfo) $ O.progDesc "Print versions info haskell-ci was compiled with"
141141
]) <|> travisP
142142

@@ -149,9 +149,7 @@ cliParserInfo = O.info ((,) <$> cmdP <*> optionsP O.<**> versionP O.<**> O.helpe
149149
githubP = CommandGitHub
150150
<$> O.strArgument (O.metavar "CABAL.FILE" <> O.action "file" <> O.help "Either <pkg.cabal> or cabal.project")
151151

152-
diffP = CommandDiffConfig
153-
<$> O.optional (O.strArgument (O.metavar "FILE" <> O.action "file" <> O.help "Either a generated CI file or Haskell-CI config file."))
154-
<*> O.optional (O.strArgument (O.metavar "FILE" <> O.action "file" <> O.help "Either a generated CI file or Haskell-CI config file."))
152+
diffP = pure CommandDiffConfig
155153

156154
-------------------------------------------------------------------------------
157155
-- Parsing helpers

0 commit comments

Comments
 (0)