aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-12 16:51:30 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-07-12 16:51:30 +0200
commit050036c036bea4dba65efd033230d552ef637abc (patch)
tree6bb3646d7816676b9ec6f2bdedd9e4a95f7c954f /src/Text
parent013fd1c6b68f2c061202d931f541aa4877ae543f (diff)
downloadpandoc-050036c036bea4dba65efd033230d552ef637abc.tar.gz
Print informative message when failing with use of `--normalize`.
We may want to think of some kind of graceful fallback, but the present behavior has the advantage of forcing people to update scripts when updating to pandoc 2.0. See #3786.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/App.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs
index 689c0a784..68bdc1432 100644
--- a/src/Text/Pandoc/App.hs
+++ b/src/Text/Pandoc/App.hs
@@ -1564,6 +1564,8 @@ handleUnrecognizedOption :: String -> [String] -> [String]
handleUnrecognizedOption "--smart" =
(("--smart/-S has been removed. Use +smart or -smart extension instead.\n" ++
"For example: pandoc -f markdown+smart -t markdown-smart.") :)
+handleUnrecognizedOption "--normalize" =
+ ("--normalize has been removed. Normalization is now automatic." :)
handleUnrecognizedOption "-S" = handleUnrecognizedOption "--smart"
handleUnrecognizedOption "--old-dashes" =
("--old-dashes has been removed. Use +old_dashes extension instead." :)