From ed92fe501f81bdc707ec5caa64482814c020fc89 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Wed, 6 Mar 2019 17:42:55 -0800 Subject: [PATCH] Fix internal error for --format (fixes #1507) --- shellcheck.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shellcheck.hs b/shellcheck.hs index 446aa3b..483da1b 100644 --- a/shellcheck.hs +++ b/shellcheck.hs @@ -340,6 +340,9 @@ parseOption flag options = } } + -- This flag is handled specially in 'process' + Flag "format" _ -> return options + Flag str _ -> do printErr $ "Internal error for --" ++ str ++ ". Please file a bug :(" return options