From 46ef59dde1806393bdcb511b2c9e909e2ba9e5ee Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Sun, 6 Dec 2015 01:55:16 +0100 Subject: [PATCH] switched from flag to switch in optparser --- src/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.hs b/src/Main.hs index 918b70a..03c517b 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -24,7 +24,7 @@ options = Options <$> argument str (metavar "SRC" <> help "source file (or - for stdin)") <*> argument auto (metavar "WIDTH" <> help "resulting width") <*> argument auto (metavar "HEIGHT" <> help "resulting height") - <*> flag True False (long "256-colors" <> short 'c' <> help "only use 256-color-mode for old terminals") + <*> switch (long "256-colors" <> short 'c' <> help "only use 256-color-mode for old terminals") opthelp :: ParserInfo Options opthelp = info (helper <*> options)