Skip to content

Commit

Permalink
Update app/Main.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rembane authored Sep 27, 2023
1 parent 1658cff commit cf3b97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ usage = putStrLn $ usageInfo "mat-chalmers [OPTION...]" opts

main :: IO ()
main = do
args <- reifyConfig . getOpt Permute opts <$> getArgs
case args of
(reifyConfig . getOpt Permute opts <$> getArgs)
>>= \case
(_ , _ , _ : _) -> usage
(_ , _ : _, _ ) -> usage
(Config{_cHelp=True}, _ , _ ) -> usage
Expand Down

0 comments on commit cf3b97d

Please sign in to comment.