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)